Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pyspector
  4. ›
  5. CVE-2026-33140

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

March 18, 2026 (updated March 20, 2026)

PySpector versions <= 0.1.6 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.

References

  • github.com/ParzivalHack/PySpector
  • github.com/ParzivalHack/PySpector/security/advisories/GHSA-2gmv-2r3v-jxj2
  • github.com/advisories/GHSA-2gmv-2r3v-jxj2
  • nvd.nist.gov/vuln/detail/CVE-2026-33140

Code Behaviors & Features

Detect and mitigate CVE-2026-33140 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.1.7

Fixed versions

  • 0.1.7

Solution

Upgrade to version 0.1.7 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/pyspector/CVE-2026-33140.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.