GHSA-7cg8-pq9v-x98q
9.8critical
Sandbox Breakout in realms-shim
- Severity
- 9.8critical CVSS:3.1 by GitHub
- Published
- Last changed
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| realms-shim (npm) | before 1.2.1 | GitHub Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-7cg8-pq9v-x98q changed 2021-09-02 | CC-BY-4.0 |