Changelog - 2026-11-07
A service assertion is not a user token, and stricter checks of the JWT options
Security Behavior ChangeIn one line. A JWKS issuer that shares its key with the service assertions, under names that match, would accept a service assertion as a user token. The user-token path now refuses it, and two odd JWT options refuse the boot instead of being ignored.
What changed
- Service assertions. Bearer and JWKS verification refuse a token whose header
typissvc+jwt(alsoSVC+JWTandapplication/svc+jwt), with401. Service assertions are still verified by the service strategy. verifymust be an object. Averifyoption that is a string, a number, a list ornullrefuses the boot. It used to be ignored, and its checks (maxTokenAge,subject) vanished without a word.- No
none. The algorithmnonerefuses the boot, asheaderAlgorithmor inverify.algorithms. A token with no signature never verified; now the configuration says so at start.
Who is affected
- Applications that share a key between the service assertions and a JWKS issuer. An assertion no longer works as a user token. Nothing else changes for them.
- Applications with a
verifyoption that is not an object, orheaderAlgorithm: 'none'. They stop booting; fix the option. - Everyone else. No action needed.
Details
| File | Package |
|---|---|
src/components/auth/authenticate/services/bearer/abstract.service.ts | core |