Vulnerability · Published Mar 20, 2026 · Assigned by GitHub_M
CVE-2026-33139PySpector: Plugin Sandbox Bypass leads to Arbitrary Code Execution
High 8.3
In plain English
A high-severity security flaw 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 7% 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 security validation bypass in the plugin system. The validate_plugin_code() function in plugin_system.py, performs static AST analysis to block dangerous API calls before a plugin is trusted and executed. However, the internal resolve_name() helper only handles ast.Name and ast.Attribute node types, returning None for all others. When a plugin uses indirect function calls via getattr() (such as getattr(os, 'system')) the outer call's func node is of type ast.Call, causing resolve_name() to return None, and the security check to be silently skipped. The plugin incorrectly passes the trust workflow, and executes arbitrary system commands on the user's machine when loaded. 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-v3xv-8vc3-h2m6 |
| PyPI | pyspector | 0.1.7 | PYSEC-2026-3030 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ParzivalHack | PySpector | < 0.1.7 |
Weakness: CWE-184 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N