3.7low
Feathersjs: Prototype pollution in @feathersjs/commons _.merge via JSON-parsed __proto__
- Severity
- 3.7low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-28xv-ph75-77wh
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| feathersjs feathers | < 5.0.45 | CVE List |
| @feathersjs/commons (npm) | before 5.0.45 | GitHub Advisory Database |
All scores
| GitHub_M | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.7low CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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__ (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.
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.
Patches
Fixed in @feathersjs/commons@5.0.45. The fix skips __proto__, constructor, and prototype keys during iteration — the standard remediation used by lodash and others.
Workarounds
Avoid passing JSON-parsed untrusted input through commons._.merge. Freezing Object.prototype or validating/sanitizing keys upstream also mitigates.
Credit
Reported responsibly by Andrew Ridings (@ridingsa).
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54335 changed 2026-07-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-28xv-ph75-77wh changed 2026-07-14 | CC-BY-4.0 |
| NVD | CVE-2026-54335 changed 2026-10-24 | Public domain |