{"answers":{"affected":"3 open source packages ship an affected version, including memray. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32722 exists.","fix":"Upgrade memray to 1.19.2 or later.","what":"CVE-2026-32722 is a low-severity cross-site scripting vulnerability in bloomberg memray, published on 18 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-32722 and fix it if it is affected.\n\nWhat it is: CVE-2026-32722 is a low-severity cross-site scripting vulnerability in bloomberg memray, published on 18 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-32722 exists.\n\nAffected packages and fixed versions:\n- memray (PyPI): affected all versions; fixed in 1.19.2\n- memray (PyPI): affected all versions; fixed in 1.19.2\n- memray (PyPI): affected all versions; fixed in 1.19.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-32722/ (Markdown: https://insights.sbomify.com/CVE-2026-32722/index.md)","id":"CVE-2026-32722","markdown":"https://insights.sbomify.com/CVE-2026-32722/index.md","name":"CVE-2026-32722","record":{"aliases":["DEBIAN-CVE-2026-32722","GHSA-r5pr-887v-m2w9","PYSEC-2026-2203","UBUNTU-CVE-2026-32722"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python memory profiler","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in victims' browsers by injecting malicious command-line arguments into Memray-generated HTML reports.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"memray","vendor":"bloomberg"}],"cvss":{"score":3.6,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-03-15","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-03-15T20:42:35Z","kind":"github_poc","ref":"https://github.com/0xmrma/CVE-2026-32722","stars":1,"title":"Bloomberg Memray’s Stored XSS via Unescaped Command-Line Metadata"}],"tier":"weaponised"},"has_fix":true,"headline":"Memray-generated HTML reports vulnerable to Stored XSS via unescaped command-line metadata","id":"CVE-2026-32722","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"SandboxJS timers have an execution-quota bypass (cross-sandbox currentTicks race)","id":"CVE-2026-32723"},"packages":[{"ecosystem":"PyPI","fixed":["1.19.2"],"introduced":["0"],"last_affected":[],"package":"memray","purl":null,"source":"GHSA-r5pr-887v-m2w9"},{"ecosystem":"PyPI","fixed":["1.19.2"],"introduced":["0"],"last_affected":[],"package":"memray","purl":"pkg:pypi/memray","source":"GHSA-r5pr-887v-m2w9"},{"ecosystem":"PyPI","fixed":["1.19.2"],"introduced":["0"],"last_affected":[],"package":"memray","purl":"pkg:pypi/memray","source":"PYSEC-2026-2203"}],"prev":{"headline":"LuCI luci-mod-network: Possible XSS attack in WiFi scan on Joining Wireless Client modal","id":"CVE-2026-32721"},"products":["memray"],"published":"2026-03-18","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-19","vendors":["bloomberg"]},"summary":"Attackers can execute arbitrary JavaScript in victims' browsers by injecting malicious command-line arguments into Memray-generated HTML reports.","url":"https://insights.sbomify.com/CVE-2026-32722/"}