GHSA-7cg8-pq9v-x98q
CRITICAL 9.8CVSS 3.1Sandbox Breakout in realms-shim
Versions of realms-shim prior to 1.2.1 are vulnerable to a Sandbox Breakout. The Realms evaluation function has an option to apply Babel-like transformations to the source code before it reaches the evaluator. One portion of this transform pipeline exposed a primal-Realm object to the rewriting function. Confined code which used the evaluator itself could provide a malicious rewriter function that captured this object, and use it to breach the sandbox.
Recommendation
Upgrade to version 1.2.1 or later.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | realms-shim | < 1.2.1 | 1.2.1 |
References
- https://github.com/Agoric/realms-shim/security/advisories/GHSA-7cg8-pq9v-x98q · WEB
- https://github.com/Agoric/realms-shim · PACKAGE
- https://github.com/advisories/GHSA-7cg8-pq9v-x98q · ADVISORY
- https://snyk.io/vuln/SNYK-JS-REALMSSHIM-536069 · WEB
- https://www.npmjs.com/advisories/1218 · WEB
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 Oct 2019)