Vulnerability · Published Mar 20, 2026 · Assigned by GitHub_M
CVE-2026-33140PySpector: Stored XSS in PySpector HTML Report Generation leads to Javascript Code Execution
Medium 5.3
In plain English
A medium-severity cross-site scripting in PySpector from ParzivalHack. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
PySpector is a static analysis security testing (SAST) Framework engineered for modern Python development workflows. PySpector versions 0.1.6 and prior are affected by a stored Cross-Site Scripting (XSS) vulnerability in the HTML report generator. When PySpector scans a Python file containing JavaScript payloads (i.e. inside a string passed to eval() ), the flagged code snippet is interpolated into the HTML report without sanitization. Opening the generated report in a browser causes the embedded JavaScript to execute in the browser's local file context. This issue has been patched in version 0.1.7.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | pyspector | 0.1.7 | GHSA-2gmv-2r3v-jxj2 |
| PyPI | pyspector | 0.1.7 | PYSEC-2026-3029 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ParzivalHack | PySpector | < 0.1.7 |
Weakness: CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N