What’s Vulnerable › Vulnerabilities
CVE-2024-31033
- Severity: medium (CVSS 6.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-04-01 · updated 2026-06-17
Description
JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key. The impacted code is the setSigningKey() method within the DefaultJwtParser class and the signWith() method within the DefaultJwtBuilder class. NOTE: the vendor disputes this because the "ignores" behavior cannot occur (in any version) unless there is a user error in how JJWT is used, and because the version that was actually tested must have been more than six years out of date.
Affected products
- Jwtk Jjwt: through 0.12.5
References
- https://github.com/2308652512/JJWT_BUG
- https://github.com/jwtk/jjwt
- https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358
- https://www.viralpatel.net/java-create-validate-jwt-token/
- https://github.com/2308652512/JJWT_BUG
- https://github.com/jwtk/jjwt
- https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358
- https://www.viralpatel.net/java-create-validate-jwt-token/
Get alerted when CVE-2024-31033 or the next vulnerability affects your stack