{"answers":{"affected":"3 open source packages ship an affected version, including pyspector. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33139 exists.","fix":"Upgrade pyspector to 0.1.7 or later.","what":"CVE-2026-33139 is a high-severity code injection vulnerability in ParzivalHack PySpector, published on 20 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-33139 and fix it if it is affected.\n\nWhat it is: CVE-2026-33139 is a high-severity code injection vulnerability in ParzivalHack PySpector, published on 20 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-33139 exists.\n\nAffected packages and fixed versions:\n- pyspector (PyPI): affected all versions; fixed in 0.1.7\n- pyspector (PyPI): affected all versions; fixed in 0.1.7\n- pyspector (PyPI): affected all versions; fixed in 0.1.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33139/ (Markdown: https://insights.sbomify.com/CVE-2026-33139/index.md)","id":"CVE-2026-33139","markdown":"https://insights.sbomify.com/CVE-2026-33139/index.md","name":"CVE-2026-33139","record":{"aliases":["GHSA-v3xv-8vc3-h2m6","PYSEC-2026-3030"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python SAST framework","requires_auth":"none","summary":"Attackers can bypass plugin security checks in PySpector to execute arbitrary code on the developer's machine via indirect function calls.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyspector","vendor":"parzivalhack"}],"cvss":{"score":8.3,"severity":"high","source":"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","version":"4.0"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PySpector: Plugin Sandbox Bypass leads to Arbitrary Code Execution","id":"CVE-2026-33139","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"PySpector: Stored XSS in PySpector HTML Report Generation leads to Javascript Code Execution","id":"CVE-2026-33140"},"packages":[{"ecosystem":"PyPI","fixed":["0.1.7"],"introduced":["0"],"last_affected":[],"package":"pyspector","purl":null,"source":"GHSA-v3xv-8vc3-h2m6"},{"ecosystem":"PyPI","fixed":["0.1.7"],"introduced":["0"],"last_affected":[],"package":"pyspector","purl":"pkg:pypi/pyspector","source":"GHSA-v3xv-8vc3-h2m6"},{"ecosystem":"PyPI","fixed":["0.1.7"],"introduced":["0"],"last_affected":[],"package":"pyspector","purl":"pkg:pypi/pyspector","source":"PYSEC-2026-3030"}],"prev":{"headline":"XWiki Platform has an Unauthenticated XAR Import via REST /wikis/{wikiName}","id":"CVE-2026-33137"},"products":["PySpector"],"published":"2026-03-20","related":[{"cvss_score":6.9,"headline":"PySpector has a Plugin Code Execution Bypass via Incomplete Static Analysis in PluginSecurity.validate_plugin_code","id":"CVE-2026-41206","kev_date_added":null,"published":"2026-04-23"},{"cvss_score":5.3,"headline":"PySpector: Stored XSS in PySpector HTML Report Generation leads to Javascript Code Execution","id":"CVE-2026-33140","kev_date_added":null,"published":"2026-03-20"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-03-20","vendors":["ParzivalHack"]},"summary":"Attackers can bypass plugin security checks in PySpector to execute arbitrary code on the developer's machine via indirect function calls.","url":"https://insights.sbomify.com/CVE-2026-33139/"}