Advisory

PYSEC-2026-2203

Also known as: CVE-2026-32722, GHSA-r5pr-887v-m2w9

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-03-18 22:16 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

memray

PyPI · All systems

Affected

  • introduced 0, fixed 1.19.2 (ecosystem)

Fixed versions

1.19.2

Fix

  • Fixed version 1.19.2
    pip install --upgrade memray==1.19.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences