Feathersjs: Prototype pollution in @feathersjs/commons _.merge via JSON-parsed __proto__
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
@feathersjs/commonsnpm | < 5.0.45 | 5.0.45 |
Affected products
1- Range: <=5.0.44
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-28xv-ph75-77whghsaADVISORY
- github.com/feathersjs/feathers/commit/28b3c03c63bdbff53115fdaa46c56980e7942accghsax_refsource_MISCWEB
- github.com/feathersjs/feathers/pull/3690ghsax_refsource_MISCWEB
- github.com/feathersjs/feathers/releases/tag/v5.0.45ghsax_refsource_MISCWEB
- github.com/feathersjs/feathers/security/advisories/GHSA-28xv-ph75-77whghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.