Vulnerability · Published Mar 18, 2026 · Assigned by GitHub_M

CVE-2026-32722Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata

Low 3.6

In plain English

A low-severity cross-site scripting in memray from bloomberg. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 25% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.6Low
Exploit odds (30 days)0.3%top 74.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

Memray is a memory profiler for Python. Prior to Memray 1.19.2, Memray rendered the command line of the tracked process directly into generated HTML reports without escaping. Because there was no escaping, attacker-controlled command line arguments were inserted as raw HTML into the generated report. This allowed JavaScript execution when a victim opened the generated report in a browser. Version 1.19.2 fixes the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13python-memray1.17.0+dfsg-1+deb13u1DEBIAN-CVE-2026-32722
Debian:14python-memray1.19.3+dfsg-1DEBIAN-CVE-2026-32722
PyPImemray1.19.2PYSEC-2026-2203
PyPImemray1.19.2GHSA-r5pr-887v-m2w9
Ubuntu:25.10python-memrayno fix listedUBUNTU-CVE-2026-32722
Ubuntu:26.04:LTSpython-memrayno fix listedUBUNTU-CVE-2026-32722
Ubuntu:26.10python-memrayno fix listedUBUNTU-CVE-2026-32722

Affected products (as reported)

VendorProductVersions
bloomberg memray < 1.19.2

Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

References