CVE-2026-32722 Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata
Attackers can execute arbitrary JavaScript in victims' browsers by injecting malicious command-line arguments into Memray-generated HTML reports.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-32722?
CVE-2026-32722 is a low-severity cross-site scripting vulnerability in bloomberg memray, published on 18 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-79
Which versions are affected by CVE-2026-32722?
3 open source packages ship an affected version, including memray. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
memray PyPI | All versions | 1.19.2 |
memray PyPI | All versions | 1.19.2 |
memray PyPI | All versions | 1.19.2 |
Products include Bloomberg Memray.
How do I fix CVE-2026-32722?
Upgrade memray to 1.19.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-32722 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32722 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as DEBIAN-CVE-2026-32722, GHSA-r5pr-887v-m2w9, PYSEC-2026-2203, UBUNTU-CVE-2026-32722.