What’s Vulnerable › Vulnerabilities
CVE-2026-32722: Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-18 · updated 2026-06-17
- Weakness: CWE-79
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 products
- bloomberg memray: before 1.19.2 — fixed in 1.19.2
How to fix
Upgrade to a fixed version: bloomberg memray 1.19.2. Check the vendor advisory for mitigations.
References
- https://github.com/bloomberg/memray/commit/ba6e4e2e9930f9641bed7adfdf43c8e2545ce249
- https://github.com/bloomberg/memray/releases/tag/v1.19.2
- https://github.com/bloomberg/memray/security/advisories/GHSA-r5pr-887v-m2w9
Get alerted when CVE-2026-32722 or the next vulnerability affects your stack