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

当使用shineout2.0.11 出现Prototype Pollution in immer <9.0.6 #2070

Open
LinPan-asbuilt opened this issue Dec 5, 2023 · 0 comments
Open

Comments

@LinPan-asbuilt
Copy link

This affects the package immer before 9.0.6. A type confusion vulnerability can lead to a bypass of GHSA-9qmh-276g-x5pj when the user-provided keys used in the path parameter are arrays. In particular, this bypass is possible because the condition (p === "proto" || p === "constructor") in applyPatches_ returns false if p is ['proto'] (or ['constructor']). The === operator (strict equality operator) returns false if the operands have different type.

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

No branches or pull requests

1 participant