CVE-2018-16489
Description
Prototype pollution vulnerability in just-extend before 4.0.0 allows attackers to inject properties into Object.prototype via its extend function.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Prototype pollution vulnerability in just-extend before 4.0.0 allows attackers to inject properties into Object.prototype via its extend function.
Vulnerability
The just-extend npm package versions prior to 4.0.0 contain a prototype pollution vulnerability in its extend function. The function recursively merges objects without proper sanitization of __proto__, constructor.prototype, or similar keys, allowing an attacker to inject arbitrary properties onto Object.prototype [1][2].
Exploitation
An attacker can exploit this by passing a crafted object with a __proto__ property to the extend function. For example, calling extend(true, {}, JSON.parse('{"__proto__": {"polluted": true}}')) will pollute the global Object prototype. No authentication or special privileges are required; the attacker only needs to control the input to the extend function [1][2].
Impact
Successful exploitation leads to prototype pollution, which can affect all objects in the application. This can result in unexpected behavior, denial of service, or potentially arbitrary code execution depending on how the polluted properties are used by the application. The vulnerability is rated critical (CVSS 9.8) [1][2].
Mitigation
Upgrade to just-extend version 4.0.0 or later, which fixes the issue by properly sanitizing prototype keys. The fix was released on February 7, 2019 [2]. No workaround is available for older versions; users must update the package.
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
just-extendnpm | < 4.0.0 | 4.0.0 |
Affected products
2- HackerOne/just-extendv5Range: <4.0.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-675m-85rw-j3w4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-16489ghsaADVISORY
- hackerone.com/reports/430291ghsax_refsource_MISCWEB
- www.npmjs.com/advisories/780ghsaWEB
News mentions
0No linked articles in our index yet.