Skip to main content
← All vulnerabilities
CVE-2026-33140PYSEC-2026-3029GHSA-2GMV-2R3V-JXJ2

PySpector: Stored XSS in PySpector HTML Report Generation leads to Javascript Code Execution

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.1.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • ParzivalHack PySpector

    fixed in 0.1.7

  • pyspectorPyPI

    fixed in 0.1.7

References 1

GitHub · ParzivalHack/PySpector