Skip to content
OpenAdvisories
Critical · 9.8 GHSA-6jg8-7333-554w

Sandbox Breakout in realms-shim

Published Oct 4, 2019 · Updated Sep 2, 2021 · Assigned by GHSA

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

EcosystemPackageAffectedFixedRecord
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