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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | python-memray | 1.17.0+dfsg-1+deb13u1 | DEBIAN-CVE-2026-32722 |
| Debian:14 | python-memray | 1.19.3+dfsg-1 | DEBIAN-CVE-2026-32722 |
| PyPI | memray | 1.19.2 | PYSEC-2026-2203 |
| PyPI | memray | 1.19.2 | GHSA-r5pr-887v-m2w9 |
| Ubuntu:25.10 | python-memray | no fix listed | UBUNTU-CVE-2026-32722 |
| Ubuntu:26.04:LTS | python-memray | no fix listed | UBUNTU-CVE-2026-32722 |
| Ubuntu:26.10 | python-memray | no fix listed | UBUNTU-CVE-2026-32722 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
References
- https://github.com/bloomberg/memray/security/advisories/GHSA-r5pr-887v-m2w9 x_refsource_CONFIRM
- https://github.com/bloomberg/memray/commit/ba6e4e2e9930f9641bed7adfdf43c8e2545ce249 x_refsource_MISC
- https://github.com/bloomberg/memray/releases/tag/v1.19.2 x_refsource_MISC