{"id":"GHSA-7cg8-pq9v-x98q","aliases":["GHSA-7cg8-pq9v-x98q"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox Breakout in realms-shim","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2019-10-21T21:58:55.000Z","modified":"2021-09-02T21:14:19.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.2.1"}],"ecosystem":"npm","package":"realms-shim","purl":"pkg:npm/realms-shim","source":"ghsa"}],"references":[{"url":"https://github.com/Agoric/realms-shim/security/advisories/GHSA-7cg8-pq9v-x98q","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Agoric/realms-shim","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-7cg8-pq9v-x98q","tags":["advisory"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-REALMSSHIM-536069","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1218","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7cg8-pq9v-x98q","url":"https://github.com/advisories/GHSA-7cg8-pq9v-x98q","licence":"CC-BY-4.0","modified":"2021-09-02T21:14:19.000Z"}],"updatedAt":"2026-11-25T22:56:44.526Z"}