Advisory

GHSA-7cg8-pq9v-x98q

Also known as: None

Summary

Sandbox Breakout in realms-shim

Details

Versions of realms-shim prior to 1.2.1 are vulnerable to a Sandbox Breakout. The Realms evaluation function has an option to apply Babel-like transformations to the source code before it reaches the evaluator. One portion of this transform pipeline exposed a primal-Realm object to the rewriting function. Confined code which used the evaluator itself could provide a malicious rewriter function that captured this object, and use it to breach the sandbox.

Recommendation

Upgrade to version 1.2.1 or later.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-10-21 21:58 UTC
Modified
2021-09-02 21:14 UTC

Affected packages and fixes

realms-shim

npm · All systems

Affected

  • introduced 0, fixed 1.2.1 (semver)

Fixed versions

1.2.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences