CVE-2019-15657 Arbitrary Code Execution in eslint-utils

Critical 9.8 Published Updated

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.

PackageAffectedFixed in
eslint-utils npmFrom 1.2.01.4.1
eslint-utils npmFrom 1.2.01.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.

Is CVE-2019-15657 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free