ADVISORIES

GitHub Advisory Database

GHSA-pm7g-w2cf-q238

pac4j-jwt: JwtAuthenticator Authentication Bypass via JWE-Wrapped PlainJWT

Critical CVE-2026-29000

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavenorg.pac4j:pac4j-jwt
From 6.0.4.1 before 6.3.3 (fixed in 6.3.3)
Mavenorg.pac4j:pac4j-jwt
From 5.0.0-RC1 before 5.7.9 (fixed in 5.7.9)
Mavenorg.pac4j:pac4j-jwt
All versions before 4.5.9 (fixed in 4.5.9)

References