CVE-2018-16491 Prototype Pollution in node.extend

Critical 9.8 Published Updated

Prototype pollution in node.extend allows attackers to inject properties into Object.prototype, potentially leading to code execution or privilege escalation.

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-16491?

CVE-2018-16491 is a critical code injection vulnerability in HackerOne node.extend, 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 node.extend <1.1.7, ~<2.0.1 that allows an attacker to inject arbitrary properties onto Object.prototype.

Weakness: CWE-74, CWE-400

Which versions are affected by CVE-2018-16491?

4 open source packages ship an affected version, including node.extend. It affects 1 product.

PackageAffectedFixed in
node.extend npmAll versions1.1.7
node.extend npmAll versions1.1.7
node.extend npmFrom 2.0.02.0.1
node.extend npmFrom 2.0.02.0.1

Products include Dreamerslab Node.extend.

How do I fix CVE-2018-16491?

Upgrade node.extend to a fixed version for your release line: 1.1.7 or 2.0.1.

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

Is CVE-2018-16491 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-16491, GHSA-r96c-57pf-9jjm, UBUNTU-CVE-2018-16491.

Is CVE-2018-16491 in your software?

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

Check your SBOMs for free