# GHSA-6jg8-7333-554w: Sandbox Breakout in realms-shim

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-10-04T17:56:12.000Z
- Modified: 2021-09-02T16:40:48.000Z

## 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.


## Recommendation

Upgrade to version 1.2.0 or later.

(As written by GitHub Advisory Database.)

## Affected

- realms-shim (npm): before 1.2.0
- ses (npm): before 0.6.3

## References

- <https://github.com/Agoric/realms-shim/security/advisories/GHSA-6jg8-7333-554w> (web)
- <https://github.com/Agoric/realms-shim> (web)
- <https://github.com/advisories/GHSA-6jg8-7333-554w> (advisory)
- <https://snyk.io/vuln/SNYK-JS-REALMSSHIM-471680> (web)
- <https://www.npmjs.com/advisories/1180> (web)
- <https://www.npmjs.com/advisories/1181> (web)
- <https://www.npmjs.com/advisories/1182> (web)
- <https://www.npmjs.com/advisories/1190> (web)
- <https://www.npmjs.com/advisories/1191> (web)

## Sources

- GitHub Advisory Database: [GHSA-6jg8-7333-554w](https://github.com/advisories/GHSA-6jg8-7333-554w), CC-BY-4.0, modified 2021-09-02

---

Page: https://cve.day/GHSA-6jg8-7333-554w · Whole record: https://cve.day/GHSA-6jg8-7333-554w.json · Rebuilt by cve.day 2026-11-25T22:56:44.385Z
