Skip to content

Conversation

@canmingir
Copy link
Member

Fixes https://github.com/NucleoidAI/react-event/security/code-scanning/1

To fix the prototype pollution vulnerability, we need to ensure that the type variable cannot be set to dangerous values like __proto__, constructor, or prototype. We can achieve this by adding a check to reject these values before using them as keys in the subscriptions object.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@canmingir canmingir marked this pull request as ready for review December 9, 2024 10:34
@canmingir canmingir merged commit 76b1837 into main Dec 9, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants