{"id":"GHSA-7cg8-pq9v-x98q","aliases":[],"status":"published","title":"Sandbox Breakout in realms-shim","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.\n\n\n## Recommendation\n\nUpgrade to version 1.2.1 or later.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2019-10-21T21:58:55Z","modified":"2023-01-09T05:02:36Z","fixes":[{"ecosystem":"npm","package":"realms-shim","fixed_in":["1.2.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"realms-shim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}]},{"source":"osv","ecosystem":"npm","package":"realms-shim","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}]}],"references":[{"url":"https://github.com/Agoric/realms-shim/security/advisories/GHSA-7cg8-pq9v-x98q","tags":["web"]},{"url":"https://github.com/advisories/GHSA-7cg8-pq9v-x98q","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/1218","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-JS-REALMSSHIM-536069","tags":["web"]},{"url":"https://github.com/Agoric/realms-shim","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-7cg8-pq9v-x98q","title":"Sandbox Breakout in realms-shim","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.\n\n\n## Recommendation\n\nUpgrade to version 1.2.1 or later.","status":"published","published":"2019-10-21T21:58:55Z","modified":"2023-01-09T05:02:36Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T14:36:03.768255Z"}],"osv":[{"id":"GHSA-7cg8-pq9v-x98q","title":"Sandbox Breakout in realms-shim","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.\n\n\n## Recommendation\n\nUpgrade to version 1.2.1 or later.","status":"published","published":"2019-10-21T21:58:55Z","modified":"2021-09-02T21:14:19Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:46:41.002603Z"}]}}
