# CVE-2026-33140: PySpector: Stored XSS in PySpector HTML Report Generation leads to Javascript Code Execution

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 16% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T16:33:46.000Z
- Modified: 2026-07-13T16:43:19.639Z
- Also known as: GHSA-2gmv-2r3v-jxj2, PYSEC-2026-3029
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ParzivalHack PySpector: < 0.1.7; before 0.1.7
- pyspector (PyPI): before 0.1.7

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/ParzivalHack/PySpector/security/advisories/GHSA-2gmv-2r3v-jxj2> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33140> (advisory)
- <https://github.com/ParzivalHack/PySpector> (package)
- <https://pypi.org/project/pyspector> (package)
- <https://github.com/advisories/GHSA-2gmv-2r3v-jxj2> (advisory)

## Sources

- CVE List: [CVE-2026-33140](https://www.cve.org/CVERecord?id=CVE-2026-33140), CVE Terms of Use, modified 2026-03-24
- GitHub Advisory Database: [GHSA-2gmv-2r3v-jxj2](https://github.com/advisories/GHSA-2gmv-2r3v-jxj2), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-33140](https://nvd.nist.gov/vuln/detail/CVE-2026-33140), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-3029](https://osv.dev/vulnerability/PYSEC-2026-3029), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-33140 · Whole record: https://cve.day/CVE-2026-33140.json · Rebuilt by cve.day 2026-11-25T22:59:16.337Z
