Vulnerability · Published Apr 23, 2026 · Assigned by GitHub_M

CVE-2026-41206PySpector has a Plugin Code Execution Bypass via Incomplete Static Analysis in PluginSecurity.validate_plugin_code

Medium 6.9

In plain English

A medium-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 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.2%top 91.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

PySpector is a static analysis security testing (SAST) Framework engineered for modern Python development workflows. The plugin security validator in PySpector uses AST-based static analysis to prevent dangerous code from being loaded as plugins. Prior to version 0.1.8, the blocklist implemented in `PluginSecurity.validate_plugin_code` is incomplete and can be bypassed using several Python constructs that are not checked. An attacker who can supply a plugin file can achieve arbitrary code execution within the PySpector process when that plugin is installed and executed. Version 0.1.8 fixes the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpyspector0.1.8GHSA-vp22-38m5-r39r
PyPIpyspector0.1.8PYSEC-2026-3031

Affected products (as reported)

VendorProductVersions
ParzivalHack PySpector < 0.1.8

Weakness: CWE-184 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

References