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

add a denylist of dengerous attributes in lodash.set/index.js #5782

Open
wants to merge 2 commits into
base: npm-packages
Choose a base branch
from

Conversation

Sampaguitas
Copy link

CWE-1321 recommends using a deny-list of dangerous attributes to eliminate the risks of Prototype Pollution.

The method "set" in the main package (lodash/lodash) is safe but not the stand alone module (lodash/lodash.set).

example: set({}, "proto.polluted", true);

CWE-1321 recommends using a deny-list of dangerous attributes to eliminate the risks of Prototype Pollution.

The method  "set" in the main package (lodash/lodash)  is safe but not the stand alone module (lodash/lodash.set).

example:
set({}, "__proto__.polluted", true);
…ous-attributes

add a denylist of dengerous attributes in lodash.set/index.js
@Sampaguitas
Copy link
Author

report sent to snyk as instructed in your SECURITY.md file

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

Successfully merging this pull request may close these issues.

None yet

1 participant