Low, CVSS 3.6PyPIAmendedPublished
Stored XSS in Memray-generated HTML reports via unescaped command-line metadata
CVE-2026-32722 · GHSA-r5pr-887v-m2w9
- Affected
- PyPI memray < 1.19.2
- Fixed in
- 1.19.2· Vendor fix available
- Issue
- 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. Affected Version - Memray version: 1.19.1 and earlier Remediation Upgrade to Memray 1.19.2, and avoid attaching Memray to untrusted processes until you have upgraded. Root Cause Jinja is used to embed the process's command line arguments into the generated flame graph or table report. Memray has not been telling Jinja to HTML escape the command line arguments when writing them into the HTML, leading to a stored XSS vulnerability. Impact An attacker who can influence the script name or command-line arguments of a profiled program can inject HTML/JavaScript into Memray-generated HTML reports (both memray flamegraph and memray table…
Recommended action: Upgrade to 1.19.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.