CVE-2018-16490 Prototype Pollution in mpath

High 7.5 Published Updated

Attackers can inject arbitrary properties into Object.prototype via prototype pollution in the mpath library, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-16490?

CVE-2018-16490 is a high-severity code injection vulnerability in HackerOne mpath, published on 1 Feb 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A prototype pollution vulnerability was found in module mpath <0.5.1 that allows an attacker to inject arbitrary properties onto Object.prototype.

Weakness: CWE-74, CWE-400

Which versions are affected by CVE-2018-16490?

2 open source packages ship an affected version, including mpath. It affects 1 product.

PackageAffectedFixed in
mpath npmAll versions0.5.1
mpath npmAll versions0.5.1

Products include Mpath Project Mpath.

How do I fix CVE-2018-16490?

Upgrade mpath to 0.5.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2018-16490 being exploited?

There is no known exploitation of CVE-2018-16490 in the wild and no public exploit code.

Sources

Also known as GHSA-h466-j336-74wx.

Is CVE-2018-16490 in your software?

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

Check your SBOMs for free