Description
deepmerge through 4.3.1 contains a prototype poisoning vulnerability in the mergeObject() function that fails to properly validate keys being written to target objects. Attackers can supply malicious source objects in merge operations to inject attacker-controlled properties into the returned object's prototype, causing applications to inherit unintended values when accessing properties without own-property checks.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-1321 — Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| TehShrike | deepmerge | 0 to <=4.3.1 |
References
- https://github.com/TehShrike/deepmerge/issues/273 (issue-tracking)
- https://github.com/TehShrike/deepmerge (product)
- https://github.com/TehShrike/deepmerge/blob/5b87756a5671635679001cbac72aa42f23472c81/index.js#L39-L60 (technical-description)
- https://www.vulncheck.com/advisories/deepmerge-through-4.3.1-prototype-poisoning-via-mergeobject (third-party-advisory)
Generated from the official CVE List on 19 Sep 2026 07:08 UTC.