-
Notifications
You must be signed in to change notification settings - Fork 426
fix(shared): prevent prototype pollution in fastDeepMerge utilities #7621
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
base: main
Are you sure you want to change the base?
Conversation
Add safeguards to fastDeepMergeAndReplace and fastDeepMergeAndKeep functions to prevent prototype pollution attacks by skipping dangerous keys (__proto__, constructor, prototype) during object merging. This fixes a security vulnerability where malicious input passed through appearance configurations or localization settings could modify Object.prototype, potentially causing DoS or application manipulation.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis change addresses a prototype pollution vulnerability in the 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Summary
fastDeepMergeAndReplaceandfastDeepMergeAndKeepto skip dangerous keys (__proto__,constructor,prototype) during object mergingThis fixes a security vulnerability (SEC-252) where malicious input passed through appearance configurations or localization settings could modify
Object.prototype, potentially causing denial of service or application manipulation.Test plan
__proto__,constructor, andprototypekeysSummary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.