CVE-2019-10760 Sandbox Breakout / Arbitrary Code Execution in safer-eval
Attackers can escape the safer-eval sandbox to execute arbitrary code via constructor properties, impacting applications using this JavaScript library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-10760?
CVE-2019-10760 is a critical code injection vulnerability in Snyk safer-eval, published on 15 Oct 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
safer-eval before 1.3.2 are vulnerable to Arbitrary Code Execution. A payload using constructor properties can escape the sandbox and execute arbitrary code.
Which versions are affected by CVE-2019-10760?
2 open source packages ship an affected version, including safer-eval. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
safer-eval npm | All versions | 1.3.2 |
safer-eval npm | All versions | 1.3.2 |
Products include Safer-Eval Project Safer-Eval.
How do I fix CVE-2019-10760?
Upgrade safer-eval to 1.3.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-10760 being exploited?
There is no known exploitation of CVE-2019-10760 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Snyk safer-eval
Sources
Also known as GHSA-hgch-jjmr-gp7w, SNYK-JS-SAFEREVAL-473029.