PyPI (Python)Worst: High6 advisories
restrictedpython: known vulnerabilities
restrictedpython has 6 reviewed security advisories in the GitHub Advisory Database — 6 high. The most recent was published 2026-09-16. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the restrictedpython versions running across your servers, containers and images, and ranks what to patch first.
How to fix restrictedpython
Upgrade restrictedpython to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade restrictedpython (pin restrictedpython>=8.4)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (6)
RestrictedPython vulnerable to sandbox escape via string.Formatter field resolution
High 8.4 CWE-200 CWE-470 CWE-680 CWE-693
— Affected: before 8.4. Fixed in 8.4. Published 2026-09-16. GHSA-hp3v-5vw7-fx9w · CVE-2026-76825
RestrictedPython guard hooks can be shadowed via positional-only arguments
High 8.3 CWE-184
— Affected: before 8.3. Fixed in 8.3. Published 2026-07-08. GHSA-ffg3-p8fm-mjx2 · CVE-2026-55830
try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter
High 7.9 CWE-843
— Affected: from 6.0 up to 8.0. Fixed in 8.0. Published 2025-01-23. GHSA-gmj9-h825-chq2 · CVE-2025-22153
RestrictedPython information leakage via `AttributeError.obj` and the `string` module
High 7.5 CWE-200
— Affected: before 7.3. Fixed in 7.3. Published 2024-09-30. GHSA-5rfv-66g4-jr8h · CVE-2024-47532
Sandbox escape via various forms of "format".
High 8.3 CWE-74
— Affected: from 6.0 up to 6.2. Fixed in 6.2. Published 2023-08-30. GHSA-xjw2-6jm9-rf67 · CVE-2023-41039
RestrictedPython vulnerable to arbitrary code execution via stack frame sandbox escape
High 8.4 CWE-913
— Affected: before 5.3. Fixed in 5.3. Published 2023-07-11. GHSA-wqc8-x2pr-7jqh · CVE-2023-37271
Find restrictedpython across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.