pac4j-jwt: JwtAuthenticator Authentication Bypass via JWE-Wrapped PlainJWT
Critical severity
GitHub Reviewed
Published
Mar 5, 2026
to the GitHub Advisory Database
•
Updated Mar 6, 2026
Package
Affected versions
>= 6.0.4.1, < 6.3.3
>= 5.0.0-RC1, < 5.7.9
< 4.5.9
Patched versions
6.3.3
5.7.9
4.5.9
Description
Published by the National Vulnerability Database
Mar 4, 2026
Published to the GitHub Advisory Database
Mar 5, 2026
Reviewed
Mar 6, 2026
Last updated
Mar 6, 2026
pac4j-jwt versions prior to 4.5.9, 5.7.9, and 6.3.3 contain an authentication bypass vulnerability in JwtAuthenticator when processing encrypted JWTs that allows remote attackers to forge authentication tokens. Attackers who possess the server's RSA public key can create a JWE-wrapped PlainJWT with arbitrary subject and role claims, bypassing signature verification to authenticate as any user including administrators.
References