CVE-2026-32722

Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata

Published Mar 18, 2026 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r5pr-887v-m2w9 Stored XSS in Memray-generated HTML reports via unescaped command-line metadata
History
Type Values Removed Values Added
CPEs cpe:2.3:a:bloomberg:memray:*:*:*:*:*:python:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Bloomberg
Bloomberg memray
Vendors & Products Bloomberg
Bloomberg memray
Type Values Removed Values Added
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.
Title Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 3.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 19, 2026, 5:39 PM
Reserved
Mar 13, 2026, 3:02 PM
Status
Analyzed
Published
Mar 18, 2026, 10:16 PM
Modified
Jun 17, 2026, 10:36 AM