CVE-2026-32722
Received Received - Intake
Cross-Site Scripting in Memray HTML Reports via Command Line

Publication date: 2026-03-18

Last updated on: 2026-03-19

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-18
Last Modified
2026-03-19
Generated
2026-05-07
AI Q&A
2026-03-19
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
bloomberg memray to 1.19.2 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

The vulnerability in Memray, a memory profiler for Python, occurs because prior to version 1.19.2, Memray inserted the command line of the tracked process directly into generated HTML reports without escaping special characters.

This lack of escaping means that if an attacker controls the command line arguments, they can inject raw HTML and JavaScript into the report.

When a victim opens the generated report in a browser, the injected JavaScript can execute, leading to potential security issues.

This issue was fixed in Memray version 1.19.2 by properly escaping the command line input before rendering it in the HTML report.


How can this vulnerability impact me? :

This vulnerability can lead to cross-site scripting (XSS) attacks when a user opens a Memray-generated HTML report containing attacker-controlled command line arguments.

The impact includes the execution of malicious JavaScript code in the context of the victim's browser, which could be used to steal sensitive information, perform actions on behalf of the user, or deliver further attacks.

However, the CVSS score of 3.6 indicates a low severity, and the attack requires local access (attack vector: local) and user interaction (UI required).


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, upgrade Memray to version 1.19.2 or later, as this version fixes the issue by properly escaping command line arguments in generated HTML reports.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart