{"id":"CVE-2026-33140","published":"2026-03-20T20:00:20Z","modified":"2026-03-24T18:55:00Z","title":"PySpector: Stored XSS in PySpector HTML Report Generation leads to Javascript Code Execution","vendor":"ParzivalHack","product":"PySpector","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00253,"percentile":0.17109,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/ParzivalHack/PySpector/security/advisories/GHSA-2gmv-2r3v-jxj2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":3.42},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"parzivalhack","affectedVersions":[{"vendor":"ParzivalHack","product":"PySpector","versions":["< 0.1.7"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-24T18:54:51.778279Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyspector","vulnerableRanges":["<0.1.7"],"patched":["0.1.7"],"from":["GHSA-2gmv-2r3v-jxj2","PYSEC-2026-3029"],"provenance":"source"}],"summary":{"text":"PySpector, a Python static analysis security testing framework, has a stored cross-site scripting flaw in its HTML report generator, where code snippets flagged from scanned Python files are inserted into the report without sanitization. An attacker who gets a malicious Python file containing JavaScript payloads (for example, within a string passed to eval()) scanned by PySpector can get that script to run in the browser when a user opens the generated report, and this requires the victim's user interaction to open the report.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:39Z"},"euvd":{"id":"EUVD-2026-13776","exploited":false,"provenance":"source"}}