{"id":"GHSA-6jg8-7333-554w","aliases":["GHSA-6jg8-7333-554w"],"related":[],"kind":"vulnerability","state":"published","title":"Sandbox Breakout in realms-shim","summary":"Versions of `realms-shim` prior to 1.2.0 are vulnerable to a Sandbox Breakout. `Reflect.construct` can be used on the sandboxed Function constructor to reach the prototypes of the primal Realm, which may allow an attacker to escape the sandbox and execute arbitrary code.\n\n\n## Recommendation\n\nUpgrade to version 1.2.0 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `realms-shim` prior to 1.2.0 are vulnerable to a Sandbox Breakout. `Reflect.construct` can be used on the sandboxed Function constructor to reach the prototypes of the primal Realm, which may allow an attacker to escape the sandbox and execute arbitrary code.\n\n\n## Recommendation\n\nUpgrade to version 1.2.0 or later.","format":"markdown","source":"ghsa"}],"published":"2019-10-04T17:56:12.000Z","modified":"2021-09-02T16:40:48.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.0"}],"ecosystem":"npm","package":"realms-shim","purl":"pkg:npm/realms-shim","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"npm","package":"ses","purl":"pkg:npm/ses","source":"ghsa"}],"references":[{"url":"https://github.com/Agoric/realms-shim/security/advisories/GHSA-6jg8-7333-554w","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Agoric/realms-shim","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-6jg8-7333-554w","tags":["advisory"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-REALMSSHIM-471680","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1180","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1181","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1182","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1190","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1191","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6jg8-7333-554w","url":"https://github.com/advisories/GHSA-6jg8-7333-554w","licence":"CC-BY-4.0","modified":"2021-09-02T16:40:48.000Z"}],"updatedAt":"2026-11-25T22:56:44.385Z"}