Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-41206 EUVD-2026-25160GHSA-vp22-38m5-r39rPYSEC-2026-3031

PySpector has a Plugin Code Execution Bypass via Incomplete Static Analysis in PluginSecurity.validate_plugin_code

Published Apr 23, 2026 · Updated Apr 23, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
ParzivalHack PySpector < 0.1.8 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pyspector < 0.1.8 0.1.8 GHSA-vp22-38m5-r39r

References