{"id":"GHSA-6jg8-7333-554w","aliases":[],"status":"published","title":"Sandbox Breakout in realms-shim","description":"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.","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-04T17:56:12Z","modified":"2023-01-09T05:02:43Z","fixes":[{"ecosystem":"npm","package":"realms-shim","fixed_in":["1.2.0"],"sources":["ghsa","osv"]},{"ecosystem":"npm","package":"ses","fixed_in":["0.6.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"realms-shim","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"ses","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.3"}]}]},{"source":"osv","ecosystem":"npm","package":"realms-shim","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}]},{"source":"osv","ecosystem":"npm","package":"ses","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.3"}]}]}],"references":[{"url":"https://github.com/Agoric/realms-shim/security/advisories/GHSA-6jg8-7333-554w","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6jg8-7333-554w","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/1180","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1181","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1182","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1190","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1191","tags":["web"]},{"url":"https://snyk.io/vuln/SNYK-JS-REALMSSHIM-471680","tags":["web"]},{"url":"https://github.com/Agoric/realms-shim","tags":["web"]}],"sources":{"ghsa":[{"id":"GHSA-6jg8-7333-554w","title":"Sandbox Breakout in realms-shim","description":"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.","status":"published","published":"2019-10-04T17:56:12Z","modified":"2023-01-09T05:02:43Z","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-6jg8-7333-554w","title":"Sandbox Breakout in realms-shim","description":"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.","status":"published","published":"2019-10-04T17:56:12Z","modified":"2021-09-02T16:40:48Z","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:39.965326Z"}]}}
