-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Locale: prevent prototype pollution #6393
Closed
chluo1997 opened this issue
Apr 15, 2024
· 3 comments
· Fixed by #6395, leoo1992/GeradorQRCode#23 or leoo1992/GeradorQRCode#27
Closed
Locale: prevent prototype pollution #6393
chluo1997 opened this issue
Apr 15, 2024
· 3 comments
· Fixed by #6395, leoo1992/GeradorQRCode#23 or leoo1992/GeradorQRCode#27
Labels
Type: Security
Issue contains a security problem or enhancement related to a specific component
Milestone
Comments
chluo1997
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Apr 15, 2024
melloware
added
Type: Security
Issue contains a security problem or enhancement related to a specific component
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Apr 15, 2024
melloware
added a commit
to melloware/primereact
that referenced
this issue
Apr 15, 2024
See my PR I had to defend it in a few more spots in Locale. |
melloware
added a commit
to melloware/primereact
that referenced
this issue
Apr 15, 2024
melloware
changed the title
A patch to prevent prototype pollution
Locale: prevent prototype pollution
Apr 15, 2024
That is great! |
Thanks for the heads up! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Type: Security
Issue contains a security problem or enhancement related to a specific component
Describe the bug
The below
updateLocaleOption()
function useskey
as the object index without sanitizing its value. If key is assigned to__proto__
during the execution of unsafe application code, prototype pollution occurs. See prototype pollution.Suggested patches:
It is recommended to blacklist attack payloads assigned to
key
Reproducer
No response
PrimeReact version
10.6.3
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: