All reports
Critical

Sandbox Breakout in realms-shim

Affected versions

Affected versions
< 1.2.0
Fixed version
1.2.0
npmses
Affected versions
< 0.6.3
Fixed version
0.6.3

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.

Links