VYPR
Critical severityNVD Advisory· Published Jun 30, 2022· Updated Aug 4, 2024

CVE-2021-40663

CVE-2021-40663

Description

deep.assign npm package version 0.0.0-alpha.0 is vulnerable to prototype pollution, allowing modification of Object prototype.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

deep.assign npm package version 0.0.0-alpha.0 is vulnerable to prototype pollution, allowing modification of Object prototype.

Vulnerability

Description The deep.assign npm package (version 0.0.0-alpha.0) is vulnerable to prototype pollution. This flaw arises from the improper handling of objects with __proto__ keys during the deep assignment process, allowing an attacker to modify the global Object.prototype [1][2].

Exploitation

An attacker can exploit this by crafting a JSON object containing a __proto__ property and passing it to the deepAssign function. The provided PoC demonstrates that after assignment, the prototype becomes polluted, as shown by accessing a newly introduced property on a plain object [3]. No authentication is required if the function is exposed to user input.

Impact

Successful exploitation can lead to information disclosure, denial of service, or remote code execution, depending on how the application uses the polluted prototype [3]. Properties injected into Object.prototype may affect all objects in the runtime.

Mitigation

As of the advisory, the package is at an early alpha stage and no patch is available. Users should avoid using this package or implement strict input validation to prevent __proto__ keys from being processed.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.