{"answers":{"affected":"3 open source packages ship an affected version, including restrictedpython and RestrictedPython.","exploited":"There is no known exploitation of CVE-2026-76825 in the wild and no public exploit code.","fix":"Upgrade restrictedpython to 8.4 or later.","what":"CVE-2026-76825 is a high-severity code injection vulnerability in zopefoundation RestrictedPython, published on 16 Sep 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-76825 and fix it if it is affected.\n\nWhat it is: CVE-2026-76825 is a high-severity code injection vulnerability in zopefoundation RestrictedPython, published on 16 Sep 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-76825 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- restrictedpython (PyPI): affected all versions; fixed in 8.4\n- restrictedpython (PyPI): affected all versions; fixed in 8.4\n- RestrictedPython (PyPI): affected all versions; fixed in 8.4\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-76825/ (Markdown: https://insights.sbomify.com/CVE-2026-76825/index.md)","id":"CVE-2026-76825","markdown":"https://insights.sbomify.com/CVE-2026-76825/index.md","name":"CVE-2026-76825","record":{"aliases":["DEBIAN-CVE-2026-76825","ECHO-d1ef-a46c-f47d","GHSA-hp3v-5vw7-fx9w","MINI-5gh9-wxp2-6vjc","MINI-73w8-j9wr-5f93","MINI-g228-w3h2-2463","MINI-hvfx-rx5x-3r6g","MINI-m4qg-67jx-97qv","MINI-pjhj-v5mv-33vm","MINI-rp33-wjc9-qgxc","MINI-x2q9-xgh6-83rv","MINI-x7wr-3rmq-94p6","PYSEC-2026-4161","UBUNTU-CVE-2026-76825"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Python sandbox library","requires_auth":"high_privilege","summary":"Attackers can escape the RestrictedPython sandbox to execute arbitrary code if the string module is exposed to restricted code.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"},{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow"},{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"RestrictedPython is a tool that helps define a subset of the Python language for accepting program input in a trusted environment. Prior to 8.4, RestrictedPython could allow a sandbox escape when a custom import policy or globals exposed the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass to restricted code. The string.Formatter methods format, get_field, get_value, and vformat performed attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. Restricted code could use those live object references to reach function globals, builtins, file access, or code execution primitives, affecting confidentiality, integrity, and availability in the host environment. This issue is fixed in version 8.4.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"RestrictedPython: Sandbox escape via string.Formatter field resolution","id":"CVE-2026-76825","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Search-indexer: search-indexer: update/delete operations not scoped to caller's cluster (cross-tenant data tampering)","id":"CVE-2026-76827"},"packages":[{"ecosystem":"PyPI","fixed":["8.4"],"introduced":["0"],"last_affected":[],"package":"RestrictedPython","purl":null,"source":"GHSA-hp3v-5vw7-fx9w"},{"ecosystem":"PyPI","fixed":["8.4"],"introduced":["0"],"last_affected":[],"package":"restrictedpython","purl":"pkg:pypi/restrictedpython","source":"GHSA-hp3v-5vw7-fx9w"},{"ecosystem":"PyPI","fixed":["8.4"],"introduced":["0"],"last_affected":[],"package":"restrictedpython","purl":"pkg:pypi/restrictedpython","source":"PYSEC-2026-4161"}],"prev":{"headline":"OpenCTI: User-Controlled ReDoS in JSON Ingestion Mapper","id":"CVE-2026-76821"},"products":["RestrictedPython"],"published":"2026-09-16","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-16","vendors":["zopefoundation"]},"summary":"Attackers can escape the RestrictedPython sandbox to execute arbitrary code if the string module is exposed to restricted code.","url":"https://insights.sbomify.com/CVE-2026-76825/"}