Description
Versions of the package mongo-object before 3.0.3 are vulnerable to Prototype Pollution via the expandKey() function in util.js. An attacker can modify the JavaScript prototype chain by supplying a crafted property path containing special keys such as __proto__.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
n/a mongo-object
0 to < 3.0.3affected
References
- https://security.snyk.io/vuln/SNYK-JS-MONGOOBJECT-13816714 ↗
- https://github.com/longshotlabs/mongo-object/issues/27 ↗
- https://github.com/longshotlabs/mongo-object/blob/4f7a570f2a2fcfa9417b7870d5f859e9574ec73c/src/util.ts%23L251 ↗
- https://github.com/longshotlabs/mongo-object/commit/638314107d8b397e5453c28e41729522b3e8d67c ↗