Quick answers
- Is CVE-2019-10759 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2019-10759 being exploited in the wild.
- How severe is CVE-2019-10759?
- Low severity, with a CVSS score of 3.1, published 21 October 2019.
- Which products and versions are affected?
- safer-eval (npm) SEMVER:introduced=0,fixed=1.3.4.
- Is there a fix for CVE-2019-10759?
- Yes. safer-eval (npm): upgrade to 1.3.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2019-10759 attacked?
- It is attacked over the network.
- Am I affected by CVE-2019-10759?
- Check whether you run safer-eval (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- safer-eval (npm): upgrade to 1.3.4 or later
npm install safer-eval@1.3.4
Technical details
safer-eval is a Node.js/browser library designed to provide safer evaluation of code strings compared to native eval(). The vulnerability exists in versions prior to 1.3.4 and is a sandbox escape flaw (CWE-94: Improper Control of Generation of Code). Attackers can bypass the sandbox by leveraging constructor property chains—for example, the payload `console.constructor.constructor('return process')().env` allows direct access to the Node.js process object and environment variables. The attack requires low privileges and no user interaction; a network-reachable endpoint that evaluates untrusted code using vulnerable versions is immediately exploitable. An attacker achieves remote code execution with full application privileges, enabling data theft, malware deployment, and system compromise. The fix is available in version 1.3.4 and later.
Affected products
- safer-eval safer-eval <1.3.4
Identifiers
- CVE-2019-10759
- GHSA-r3x4-wr4h-pw33
Timeline
- 2019-03-08: disclosed
- 2019-10-21: advisory
- 2019-10-15: patched: CVE published; version 1.3.4 available as fix