Skip to content

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

CriticalCVSS 9.8
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
npm realms-shim(npm) < 1.2.0 1.2.0 Fixed
npm ses(npm) < 0.6.3 0.6.3 Fixed

Affected products

ProductAffected versionsFixed in
npm realms-shim(npm) < 1.2.0 1.2.0
npm ses(npm) < 0.6.3 0.6.3

References