{"id":"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.","modified":"2021-09-02T21:14:19Z","published":"2019-10-21T21:58:55Z","database_specific":{"cwe_ids":[],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:22:25Z","nvd_published_at":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"}],"affected":[{"package":{"name":"realms-shim","ecosystem":"npm","purl":"pkg:npm/realms-shim"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/10/GHSA-7cg8-pq9v-x98q/GHSA-7cg8-pq9v-x98q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}