{"id":"GHSA-r65j-6h5f-4f92","summary":"Withdrawn: JJWT improperly generates signing keys","details":"## Withdrawn Advisory\n\nThis advisory has been withdrawn because it has been found to be disputed. Please see the issue [here](https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358) for more information.\n\n## Original Description\n\nJJWT (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.","aliases":["CVE-2024-31033"],"modified":"2026-09-10T03:50:11.552248219Z","published":"2024-04-01T03:30:38Z","withdrawn":"2024-04-03T14:52:58Z","database_specific":{"github_reviewed_at":"2024-04-01T16:28:49Z","nvd_published_at":"2024-04-01T02:15:07Z","cwe_ids":["CWE-327"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31033"},{"type":"WEB","url":"https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358"},{"type":"WEB","url":"https://github.com/2308652512/JJWT_BUG"},{"type":"PACKAGE","url":"https://github.com/jwtk/jjwt"},{"type":"WEB","url":"https://github.com/jwtk/jjwt/blob/26948610fbef81eba867cbaad54b516d1874c70a/impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtParserBuilder.java#L242"},{"type":"WEB","url":"https://www.viralpatel.net/java-create-validate-jwt-token"}],"affected":[{"package":{"name":"io.jsonwebtoken:jjwt-impl","ecosystem":"Maven","purl":"pkg:maven/io.jsonwebtoken/jjwt-impl"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.12.5"}]}],"versions":["0.10.0","0.10.1","0.10.2","0.10.3","0.10.4","0.10.5","0.10.6","0.10.7","0.10.8","0.11.0","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.12.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-r65j-6h5f-4f92/GHSA-r65j-6h5f-4f92.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"}]}