GHSA-7cg8-pq9v-x98q Sandbox Breakout in realms-shim
CriticalCVSS 9.8
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm realms-shim(npm) | < 1.2.1 | 1.2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm realms-shim(npm) | < 1.2.1 | 1.2.1 |
References
- github.com vendor-advisory
- github.com vendor-advisory
- www.npmjs.com
- snyk.io
- github.com product