{"id":"CVE-2024-31033","details":"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.","modified":"2026-08-12T03:51:30.585125467Z","published":"2024-04-01T00:00:00Z","database_specific":{"isDisputed":true,"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31033.json","cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://www.viralpatel.net/java-create-validate-jwt-token/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31033.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31033"},{"type":"REPORT","url":"https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358"},{"type":"PACKAGE","url":"https://github.com/2308652512/JJWT_BUG"},{"type":"PACKAGE","url":"https://github.com/jwtk/jjwt"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/jwtk/jjwt","events":[{"introduced":"0"},{"fixed":"2399e2fdc5e20fad9d71d6bcbfd126cce6521638"}],"database_specific":{"source":"DESCRIPTION","extracted_events":[{"introduced":"0"},{"fixed":"0.12.5"}]}}],"versions":["0.11.2","0.11.1","0.11.0","0.10.7","0.10.6","0.10.2","0.10.1","0.10.0","0.9.0","0.8.0","0.7.0","0.6.0","0.5.1","0.5","0.4","0.3","0.2","0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31033.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}