Sandbox Breakout / Arbitrary Code Execution in safer-evalGHSA-hgch-jjmr-gp7w
CRITICALFix: commenthol/safer-eval@1c29f6aGHSA-hgch-jjmr-gp7w is a critical-severity (CVSS 9.9) remote code execution vulnerability in safer-eval. A fix is available for safer-eval — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-hgch-jjmr-gp7w by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,738 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.
safer-evalnpmDescription
Versions of safer-eval before 1.3.2 are vulnerable to Sandbox Escape leading to Remote Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code.
Recommendation
Upgrade to version 1.3.2.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | safer-eval | all versions | 1.3.2npm install safer-eval@1.3.2 |
Affected Products
safer-evalsafer-eval_projectDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for safer-eval, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update safer-eval to 1.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-hgch-jjmr-gp7w is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-hgch-jjmr-gp7w in your dependencies?
Find it across npm, including transitive dependencies.