CVE-2019-15657 Arbitrary Code Execution in eslint-utils
Attackers can execute arbitrary code via the getStaticValue function in eslint-utils, requiring developers to upgrade the library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-15657?
CVE-2019-15657 is a critical code injection vulnerability in n/a, published on 26 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In eslint-utils before 1.4.1, the getStaticValue function can execute arbitrary code.
Which versions are affected by CVE-2019-15657?
2 open source packages ship an affected version, including eslint-utils. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
eslint-utils npm | From 1.2.0 | 1.4.1 |
eslint-utils npm | From 1.2.0 | 1.4.1 |
Products include Eslint-Utils Project Eslint-Utils.
How do I fix CVE-2019-15657?
Upgrade eslint-utils to 1.4.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2019-15657 being exploited?
There is no known exploitation of CVE-2019-15657 in the wild and no public exploit code.
Sources
Also known as GHSA-3gx7-xhv7-5mx3.