Advisory

GHSA-gc25-3vc5-2jf9

Also known as: None

Summary

Sandbox Breakout / Arbitrary Code Execution in sandbox

Details

All versions of sandbox are vulnerable to Sandbox Escape leading to Remote Code Execution. The package fails to restrict access to the main context through this.constructor.constructor . This may allow attackers to execute arbitrary code in the system. Evaluating the payload this.constructor.constructor('return process.env')() prints the contents of process.env.

Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2020-09-04 15:00 UTC
Modified
2026-02-03 17:47 UTC

Affected packages and fixes

sandbox

npm · All systems

Affected

  • introduced 0.0.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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