In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade web-token/jwt-library to version 3.4.10, 4.0.7, 4.1.7 or higher.
Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via header merging in JWSVerifier::getAlgorithm() and JWEDecrypter. An attacker can bypass protected header validation by placing conflicting alg or enc values in unprotected headers, which override the integrity-protected values during actual verification or decryption due to last-wins merge behavior. This creates a mismatch between the header values checked by HeaderCheckerManager and the values later used for cryptographic processing.