CVE-2026-32722 Details
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.
A stored cross-site scripting vulnerability has been identified in Memray, a memory profiler for Python, in versions prior to 1.19.2. The issue arises because Memray rendered the command line of the tracked process directly into HTML reports without proper escaping. This lack of escaping allowed attacker-controlled command line arguments to be inserted as raw HTML, enabling JavaScript execution when the report was opened in a browser. The vulnerability affects Memray-generated HTML reports, including both 'flamegraph' and 'table' formats, with and without the '--no-web' option.
Users are advised to upgrade to Memray version 1.19.2. After upgrading, it is recommended to avoid attaching Memray to untrusted processes until the update has been applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 19, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/bloomberg/memray/commit/ba6e4e2e9930f9641bed7adfdf43c8e2545ce249 | [email protected] | Patch |
| https://github.com/bloomberg/memray/releases/tag/v1.19.2 | [email protected] | ProductRelease Notes |
| https://github.com/bloomberg/memray/security/advisories/GHSA-r5pr-887v-m2w9 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bloomberg memray | < 1.19.2 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 19, 2026 | Initial Analysis | [email protected] |
| Mar 18, 2026 | New CVE Received | [email protected] |