{"id":"CVE-2026-54335","aliases":["CVE-2026-54335","GHSA-28xv-ph75-77wh"],"related":[],"kind":"vulnerability","state":"published","title":"Feathersjs: Prototype pollution in @feathersjs/commons _.merge via JSON-parsed __proto__","summary":"Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. In 5.0.44 and earlier, the _.merge(target, source) utility exported by @feathersjs/commons recursively merges source into target by iterating Object.keys(source). When source was produced by JSON.parse and contains a __proto__, constructor, or prototype key, that key is returned as an own-enumerable property; the recursive merge then resolves target['__proto__'] to Object.prototype and writes attacker-supplied properties onto it, polluting the prototype for all plain objects in the process for the lifetime of the Node process. This issue is fixed in version 5.0.45.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Feathersjs is a framework for creating web APIs and real-time applications with TypeScript or JavaScript. In 5.0.44 and earlier, the _.merge(target, source) utility exported by @feathersjs/commons recursively merges source into target by iterating Object.keys(source). When source was produced by JSON.parse and contains a __proto__, constructor, or prototype key, that key is returned as an own-enumerable property; the recursive merge then resolves target['__proto__'] to Object.prototype and writes attacker-supplied properties onto it, polluting the prototype for all plain objects in the process for the lifetime of the Node process. This issue is fixed in version 5.0.45.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe `_.merge(target, source)` utility exported by `@feathersjs/commons` recursively merges `source` into `target` by iterating `Object.keys(source)`. When `source` was produced by `JSON.parse` and contains a `__proto__` (or `constructor` / `prototype`) key, that key is returned as an own-enumerable property. The recursive merge then resolves `target['__proto__']` to `Object.prototype` and writes the attacker-supplied properties onto it, polluting the prototype for all plain objects in the process for the lifetime of the Node process.\n\n**Scope of real-world risk is limited.** No first-party Feathers package routes input — trusted or untrusted — through `commons._.merge`. The `@feathersjs/authentication` package, which does merge request-influenced data, uses `lodash/merge` (prototype-pollution-safe since 4.17.12), not this utility. Exploitation therefore requires a downstream plugin or application to pass JSON-parsed, attacker-controlled input directly through the exported `_.merge`.\n\n### Patches\n\nFixed in `@feathersjs/commons@5.0.45`. The fix skips `__proto__`, `constructor`, and `prototype` keys during iteration — the standard remediation used by lodash and others.\n\n### Workarounds\n\nAvoid passing JSON-parsed untrusted input through `commons._.merge`. Freezing `Object.prototype` or validating/sanitizing keys upstream also mitigates.\n\n### Credit\n\nReported responsibly by Andrew Ridings (@ridingsa).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Feathersjs es un framework para crear APIs web y aplicaciones en tiempo real con TypeScript o JavaScript. En 5.0.44 y versiones anteriores, la utilidad _.merge(target, source) exportada por @feathersjs/commons fusiona recursivamente source en target al iterar Object.keys(source). Cuando source fue producido por JSON.parse y contiene una clave __proto__, constructor o prototype, esa clave se devuelve como una propiedad propia enumerable; la fusión recursiva luego resuelve target[’__proto__’] a Object.prototype y escribe propiedades proporcionadas por el atacante sobre ella, contaminando el prototipo para todos los objetos planos en el proceso durante la vida útil del proceso de Node. Este problema está solucionado en la versión 5.0.45.","source":"nvd"}],"published":"2026-07-14T19:40:05.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 5.0.45","status":"affected"}],"vendor":"feathersjs","product":"feathers","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.0.45"}],"ecosystem":"npm","package":"@feathersjs/commons","purl":"pkg:npm/%40feathersjs/commons","source":"ghsa"}],"references":[{"url":"https://github.com/feathersjs/feathers/security/advisories/GHSA-28xv-ph75-77wh","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/pull/3690","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/commit/28b3c03c63bdbff53115fdaa46c56980e7942acc","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers/releases/tag/v5.0.45","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/feathersjs/feathers","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-20T17:37:43.562Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54335","url":"https://www.cve.org/CVERecord?id=CVE-2026-54335","licence":"CVE Terms of Use","modified":"2026-07-20T17:38:02.512Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-28xv-ph75-77wh","url":"https://github.com/advisories/GHSA-28xv-ph75-77wh","licence":"CC-BY-4.0","modified":"2026-07-14T19:56:45.565Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54335","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54335","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:28.592Z","epss":{"score":0.00259,"percentile":0.18729,"date":"2026-12-01T12:00:22.000Z"}}