Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @phun-ky/defaults-deep
  4. ›
  5. CVE-2026-54737

CVE-2026-54737: @phun-ky/defaults-deep Has a Prototype Pollution issue via Unsafe Recursive Property Merging

July 31, 2026

A prototype pollution vulnerability exists in @phun-ky/defaults-deep prior to version 2.0.5.

The library recursively merged user-supplied objects without filtering unsafe property names such as __proto__, constructor, and prototype. An attacker able to supply crafted input could cause properties to be written to Object.prototype, resulting in prototype pollution affecting all objects within the running process.

Applications that pass untrusted input to defaultsDeep() may be impacted. Depending on how the application uses merged objects, this could lead to unexpected behavior, logic bypasses, denial of service, or other security issues.

References

  • github.com/advisories/GHSA-mj3g-7xcc-x4vh
  • github.com/phun-ky/defaults-deep/commit/807dba930f8718f9126cad59d949b8fd3539b059
  • github.com/phun-ky/defaults-deep/pull/49
  • github.com/phun-ky/defaults-deep/releases/tag/2.0.5
  • github.com/phun-ky/defaults-deep/security/advisories/GHSA-mj3g-7xcc-x4vh
  • nvd.nist.gov/vuln/detail/CVE-2026-54737

Code Behaviors & Features

Detect and mitigate CVE-2026-54737 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.5

Fixed versions

  • 2.0.5

Solution

Upgrade to version 2.0.5 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/@phun-ky/defaults-deep/CVE-2026-54737.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:17:39 +0000.