{"id":"CVE-2026-54737","aliases":["CVE-2026-54737","GHSA-mj3g-7xcc-x4vh"],"related":[],"kind":"vulnerability","state":"published","title":"@phun-ky/defaults-deep Has a Prototype Pollution issue via Unsafe Recursive Property Merging","summary":"@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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA prototype pollution vulnerability exists in @phun-ky/defaults-deep prior to version 2.0.5.\n\nThe 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.\n\nApplications 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.\n\n### Patches\n\nThis issue has been fixed in version 2.0.5.\n\nUsers should upgrade to version 2.0.5 or later.\n\nThe fix prevents unsafe prototype-related keys (`__proto__`, `constructor`, and `prototype`) from being processed during recursive merge operations and includes regression tests covering known prototype pollution vectors.\n\n### Workarounds\n\nUsers unable to upgrade should ensure that untrusted input is sanitized before being passed to `defaultsDeep()`.\n\nAt a minimum, applications should reject or remove the following property names from all levels of user-controlled objects:\n\n- `__proto__`\n- `constructor`\n- `prototype`\n\nUpgrading to a patched version remains the recommended mitigation.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@phun-ky/defaults-deep es una biblioteca similar a lodash defaultsDeep con preservación de arrays y sin dependencia de lodash. Antes de la versión 2.0.5, defaultsDeep() fusiona recursivamente objetos proporcionados por el usuario sin filtrar proto, constructor y prototype, permitiendo que las propiedades se escriban en Object.prototype. Este problema está solucionado en la versión 2.0.5.","source":"nvd"}],"published":"2026-07-31T17:48:42.670Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 2.0.5","status":"affected"}],"vendor":"phun-ky","product":"defaults-deep","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.5"}],"ecosystem":"npm","package":"@phun-ky/defaults-deep","purl":"pkg:npm/%40phun-ky/defaults-deep","source":"ghsa"}],"references":[{"url":"https://github.com/phun-ky/defaults-deep/security/advisories/GHSA-mj3g-7xcc-x4vh","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phun-ky/defaults-deep/pull/49","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phun-ky/defaults-deep/commit/807dba930f8718f9126cad59d949b8fd3539b059","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phun-ky/defaults-deep/releases/tag/2.0.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phun-ky/defaults-deep","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-31T18:53:15.831Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54737","url":"https://www.cve.org/CVERecord?id=CVE-2026-54737","licence":"CVE Terms of Use","modified":"2026-07-31T19:00:41.074Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mj3g-7xcc-x4vh","url":"https://github.com/advisories/GHSA-mj3g-7xcc-x4vh","licence":"CC-BY-4.0","modified":"2026-07-31T18:11:48.291Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54737","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54737","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.730Z","epss":{"score":0.00262,"percentile":0.19214,"date":"2026-12-01T12:00:22.000Z"}}