CVE-2018-16489 Prototype Pollution in just-extend
Prototype pollution in just-extend allows attackers to inject properties into Object.prototype, 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-16489?
CVE-2018-16489 is a critical code injection vulnerability in HackerOne just-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 just-extend <4.0.0 that allows attack to inject properties onto Object.prototype through its functions.
Which versions are affected by CVE-2018-16489?
2 open source packages ship an affected version, including just-extend. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
just-extend npm | All versions | 4.0.0 |
just-extend npm | All versions | 4.0.0 |
Products include Just-Extend Project Just-Extend.
How do I fix CVE-2018-16489?
Upgrade just-extend to 4.0.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2018-16489 being exploited?
There is no known exploitation of CVE-2018-16489 in the wild and no public exploit code.
Sources
Also known as GHSA-675m-85rw-j3w4.