Repository navigation
fix(backend): Stop verifying ES256 tokens (Core 2) - #11106
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
🦋 Changeset detectedLatest commit: e0b9efe The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
…nd-drop-es256-core-2 # Conflicts: # packages/backend/src/tokens/keys.ts
…nd-drop-es256-core-2 # Conflicts: # packages/backend/src/tokens/keys.ts
…nd-drop-es256-core-2
…nd-drop-es256-core-2 # Conflicts: # packages/backend/src/tokens/__tests__/keys.test.ts # packages/backend/src/tokens/keys.ts


Summary
Stacked on #11108.
@clerk/backendremoves the ES256 support added in 2.34.0 and stops accepting ES256 tokens, and a configuredjwtKeyis always used to verify. Multi-key JWKS, composite kids and kid-based key selection from #11037 stay.Evidence
After:
verify.test.ts"rejects an ES256 token as an invalid algorithm" passes, and an RS256 token still verifies while the JWKS lists an EC key.jwtKeymakes 0 JWKS requests when the signature check fails.Merge Danger
Door: two-way
A revert restores ES256. An ES256 session cookie is signed out on this version, not refreshed through a handshake.
Blast Radius: verification
jwtKeyset to a P-256 key stops working.signJwt/verifyJwtthrow forES256.jwtKeynever calls the network, which matches the behavior before 2.34.