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

- Severity: Low 3.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 28% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-16T16:41:58.000Z
- Modified: 2026-07-13T07:26:24.495Z
- Also known as: GHSA-r5pr-887v-m2w9, PYSEC-2026-2203
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- bloomberg memray: < 1.19.2; before 1.19.2
- memray (PyPI): before 1.19.2

## Every score

- GitHub_M: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/bloomberg/memray/security/advisories/GHSA-r5pr-887v-m2w9> (exploit, evidence, vendor-advisory, web)
- <https://github.com/bloomberg/memray/commit/ba6e4e2e9930f9641bed7adfdf43c8e2545ce249> (fix, patch, web)
- <https://github.com/bloomberg/memray/releases/tag/v1.19.2> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32722> (advisory)
- <https://github.com/bloomberg/memray> (package)

## Sources

- CVE List: [CVE-2026-32722](https://www.cve.org/CVERecord?id=CVE-2026-32722), CVE Terms of Use, modified 2026-03-19
- GitHub Advisory Database: [GHSA-r5pr-887v-m2w9](https://github.com/advisories/GHSA-r5pr-887v-m2w9), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-32722](https://nvd.nist.gov/vuln/detail/CVE-2026-32722), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2203](https://osv.dev/vulnerability/PYSEC-2026-2203), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-32722 · Whole record: https://cve.day/CVE-2026-32722.json · Rebuilt by cve.day 2026-11-25T22:59:16.141Z
