Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype pollution (Fixed) #13

Closed
wants to merge 1 commit into from

Conversation

luci-m-666
Copy link

Hi,
This package is vulnerable to prototype pollution.

var nessy = require("nessy")
var obj = {}
console.log("Before : " + {}.polluted);
nessy('a/__proto__/polluted', "Yes! Its Polluted", '/', obj);
console.log("After : " + {}.polluted);

Output

Before : undefined
After : Yes! Its Polluted

Fix avoids prototype pollution.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.9%) to 75.0% when pulling 269ed15 on luci-m-666:master into e933352 on coderaiser:master.

@coderaiser
Copy link
Owner

Thanks a lot :)! Merged as 8443c0f, landed in v3.0.1 🎉 .
Is it works for you?

@luci-m-666
Copy link
Author

Sure. Happy to be of help.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants