Skip to content
OpenAdvisories
Low · 3.6 Public exploit CVE-2026-32722 EUVD-2026-12970GHSA-r5pr-887v-m2w9PYSEC-2026-2203

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

Published Mar 18, 2026 · Updated Mar 19, 2026 · 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.

Affected products

VendorProductAffectedFixed
bloomberg memray < 1.19.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-memray 1.19.3+dfsg-1 —
Debian 13 python-memray 1.17.0+dfsg-1+deb13u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-memray No fix yet —
Ubuntu 26.04 LTS python-memray No fix yet —
Ubuntu 25.10 python-memray No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • 0xmrma/CVE-2026-32722 ★ 1 · Mar 15, 2026

    Bloomberg Memray’s Stored XSS via Unescaped Command-Line Metadata

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI memray < 1.19.2 1.19.2 GHSA-r5pr-887v-m2w9

References