{"id":"GHSA-7cg8-pq9v-x98q","aliases":[],"url":"https://o3.security/vulnerability/GHSA-7cg8-pq9v-x98q","summary":"Sandbox Breakout in realms-shim","details":"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.","published":"2019-10-21T21:58:55Z","modified":"2021-09-02T21:14:19Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"realms-shim","fixedVersion":"1.2.1"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/Agoric/realms-shim/security/advisories/GHSA-7cg8-pq9v-x98q"},{"type":"PACKAGE","url":"https://github.com/Agoric/realms-shim"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7cg8-pq9v-x98q"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-REALMSSHIM-536069"},{"type":"WEB","url":"https://www.npmjs.com/advisories/1218"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2021-09-02T21:14:19Z"}}