CVE-2026-54737 Details
Description
@phun-ky/defaults-deep is a library like lodash defaultsDeep with array preservation and no lodash dependency. Prior to 2.0.5, defaultsDeep() recursively merges user-supplied objects without filtering proto, constructor, and prototype, allowing properties to be written to Object.prototype. This issue is fixed in version 2.0.5.
A prototype pollution vulnerability exists in the @phun-ky/defaults-deep library, prior to version 2.0.5. The issue arises because the library's 'defaultsDeep()' function recursively merges user-supplied objects without properly filtering out unsafe property names such as '__proto__', 'constructor', and 'prototype'. This oversight allows an attacker to manipulate the prototype of Object, potentially leading to unexpected behavior or security issues in applications that use the library.
Users should upgrade to version 2.0.5 or later. The fixed version prevents the processing of unsafe prototype-related keys during merge operations. For those unable to upgrade, it is recommended to sanitize untrusted input by removing or rejecting these unsafe property names before merging.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 31, 2026CISA-ADP
Assessed Jul 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/phun-ky/defaults-deep/commit/807dba930f8718f9126cad59d949b8fd3539b059 | [email protected] | Source CodeVendor |
| https://github.com/phun-ky/defaults-deep/pull/49 | [email protected] | Issue TrackingVendor |
| https://github.com/phun-ky/defaults-deep/releases/tag/2.0.5 | [email protected] | Release NotesVendor |
| https://github.com/phun-ky/defaults-deep/security/advisories/GHSA-mj3g-7xcc-x4vh | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| phun-ky defaults-deep | < 2.0.5 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Jul 31, 2026 | CVE Modified | CISA-ADP |
| Jul 31, 2026 | New CVE Received | [email protected] |
Volerion