Skip to main content

PySpector CVE-2026-41206

| EUVDEUVD-2026-25160 MEDIUM
Incomplete List of Disallowed Inputs (CWE-184)
2026-04-23 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious plugin code
  2. Delivery
    Plugin bypasses incomplete AST blocklist
  3. Exploit
    User installs plugin in PySpector
  4. Execution
    Plugin executes during PySpector runtime
  5. Impact
    Arbitrary code runs with process privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

An attacker must have write access to the filesystem location where plugins are stored or supplied to PySpector, and a user must actively install and execute the malicious plugin. The vulnerability is not remotely exploitable without prior compromise of a system running PySpector or prior social engineering to trick a user into installing a malicious plugin from an untrusted source. The AST-based blocklist is incomplete, meaning the validator fails to check for all dangerous Python constructs - the specific constructs that bypass the check are not enumerated in the provided CVE data, but common bypasses for similar validators include alternative import methods (__import__), exec/eval alternatives (compile, ast.literal_eval chaining), or indirect code execution via __getattr__/__setattr__ hooks. Exploitation requires PySpector to be installed, configured to load plugins, and set to execute user-supplied or untrusted plugin code.

Impact

The CVSS 6.9 score (CVSS 4.0 with attack vector Local, privilege requirement Low, user interaction required) reflects moderate severity mitigated by local attack vector and authentication requirements. However, this score understates the real-world risk in supply-chain and multi-user environments: CWE-184 (incomplete blocklist) is a fundamental class of vulnerability where defenders cannot enumerate all bypass techniques, making patches and updates critical. The vulnerability requires local file write access (PR:L) and user interaction to install/execute the plugin (UI:A), which limits opportunistic exploitation but not targeted attacks. In development environments, plugin repositories, or shared CI/CD systems where users can supply plugins, an attacker with commit or file-system access can reliably achieve code execution. The patch availability (version 0.1.8 released) is the primary mitigation signal. No EPSS score, KEV status, or public exploit details are provided, suggesting limited public exploitation at time of analysis, but the attack prerequisite (supplying a plugin file) is straightforward in collaborative development settings. CVSS vector shows no scope change (SC:N), meaning impact is limited to the PySpector process itself rather than the host system, but process-level RCE still poses significant risk if PySpector runs with elevated privileges or processes sensitive code.

Exploit ScenarioDerived

A developer with access to a shared PySpector plugin repository submits a malicious plugin file containing code that bypasses the AST validator (using Python constructs not in the blocklist, such as alternative import mechanisms or runtime code generation techniques). When another user installs and executes the plugin in PySpector versions prior to 0.1.8, the validator fails to detect the attack, and the malicious code runs with the privileges of the PySpector process, allowing the attacker to exfiltrate data, modify analysis results, or compromise the developer's environment.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 23, 2026

PySpector versions prior to 0.1.8 allow arbitrary code execution within the PySpector process when a malicious plugin is supplied and executed. The plugin security validator uses incomplete AST-based static analysis that fails to block dangerous Python constructs, permitting attackers with write access to plugin files to bypass the blocklist and achieve remote code execution. The vulnerability is fixed in version 0.1.8.

RemediationAI

Upgrade PySpector to version 0.1.8 or later, which includes fixes to the plugin security validator blocklist and improved AST-based checks for dangerous constructs (confirmed by commits 3c9547157fc07396f22b26b3484a9a91eba98555 and 4e279e078c53d760fd321ff9b698d683c65ccb8e on GitHub). Until upgrade is possible, restrict write access to plugin directories to trusted developers only, audit all installed plugins for suspicious constructs (imports, exec/eval calls, __import__ usage, compile() calls, or unusual AST patterns), and consider running PySpector in an isolated environment or container with limited privileges. If running PySpector in a shared development environment, enforce code review requirements for plugin submissions and use filesystem-level access controls (ACLs or Unix permissions) to prevent unauthorized plugin modification.

Affected VersionsENISA

PySpector < 0.1.8

Affected Packages

pypi pyspector fix: 0.1.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PySpector is a static analysis security testing (SAST) framework for Python that validates plugins through AST (Abstract Syntax Tree) analysis before execution. The vulnerable component is the PluginSecurity.validate_plugin_code function, which maintains a blocklist of dangerous Python constructs to prevent unsafe code execution. The root cause (CWE-184: Incomplete List of Disallowed Inputs) stems from an incomplete blocklist implementation - the validator fails to enumerate and block all Python language constructs that could be abused for code execution. Attackers can use alternative Python constructs not covered by the blocklist to execute arbitrary code within the PySpector process, effectively bypassing the security gate that should prevent malicious plugins from running.

Know when Pyspector gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
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

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Patch released
Apr 29, 2026 - 15:48 nvd
Patch available
Patch available
Apr 23, 2026 - 06:16 EUVD
CVSS changed
Apr 23, 2026 - 02:35 NVD
6.9 (MEDIUM)
CVE Published
Apr 23, 2026 - 00:42 nvd
MEDIUM 6.9

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy