CVE-2024-31033

medium

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.

References

https://www.viralpatel.net/java-create-validate-jwt-token/

https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358

https://github.com/jwtk/jjwt

https://github.com/2308652512/JJWT_BUG

Details

Source: Mitre, NVD

Published: 2024-04-01

Updated: 2026-04-15

Risk Information

CVSS v2

Base Score: 7.1

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:N

Severity: High

CVSS v3

Base Score: 6.8

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Severity: Medium

EPSS

EPSS: 0.00285