Advisory record · GHSA-hp3v-5vw7-fx9w

RestrictedPython vulnerable to sandbox escape via string.Formatter field resolution

CVSS 8.4 HighEPSS 0.0062 · 50th percentile

Published by the GitHub Advisory Database at 17 Sept 2026, 16:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
restrictedpythonPyPI<8.48.4
Identifiers
GHSA-hp3v-5vw7-fx9w · CVE-2026-76825 · PYSEC-2026-4161
Weakness (CWE)
CWE-200 · CWE-470 · CWE-680 · CWE-693
Published
17 Sept 2026
Updated
1 Oct 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

RestrictedPython versions before 8.4 are vulnerable to a sandbox escape when a policy exposes the standard library string module or string.Formatter to restricted code. An attacker running untrusted code can use Formatter field resolution to traverse attributes and obtain live object references, potentially reaching globals, builtins, or code execution. Upgrade to version 8.4. Until then, do not expose string or string.Formatter to restricted code.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.4 High 3.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0062, the 50th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:09 UTC First seen by agentprime
  2. 31 Oct 2026, 14:09 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.