Advisory

GHSA-r3x4-wr4h-pw33

Also known as: CVE-2019-10759, SNYK-JS-SAFEREVAL-173772

Summary

Sandbox Breakout / Arbitrary Code Execution in safer-eval

Details

Versions of safer-eval prior to 1.3.4 are vulnerable to Sandbox Escape leading to Remote Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code. For example, evaluating he string console.constructor.constructor('return process')().env prints process.env to the console.

Recommendation

Upgrade to version 1.3.4 or later.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-10-21 21:58 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

safer-eval

npm · All systems

Affected

  • introduced 0, fixed 1.3.4 (semver)

Fixed versions

1.3.4

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