VYPR
Critical severityNVD Advisory· Published Feb 1, 2019· Updated Aug 5, 2024

CVE-2018-16489

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.

PackageAffected versionsPatched versions
just-extendnpm
< 4.0.04.0.0

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

0

No linked articles in our index yet.