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.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | realms-shim | < 1.2.0 | 1.2.0 | GHSA-6jg8-7333-554w |
| npm | ses | < 0.6.3 | 0.6.3 | GHSA-6jg8-7333-554w |
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