{"id":"CVE-2024-31033","aliases":["CVE-2024-31033","GHSA-r65j-6h5f-4f92"],"related":[],"kind":"vulnerability","state":"published","title":"JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"JJWT (también conocido como Java JWT) hasta 0.12.5 ignora ciertos caracteres y, por lo tanto, un usuario podría concluir erróneamente que tiene una clave segura. El código afectado es el método setSigningKey() dentro de la clase DefaultJwtParser y el método signWith() dentro de la clase DefaultJwtBuilder.","source":"nvd"}],"published":"2024-04-01T00:00:00.000Z","modified":"2026-09-10T03:50:11.552Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-327"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"0.12.5","status":"affected"}],"vendor":"jwtk","product":"jjwt","cpe":"cpe:2.3:a:jwtk:jjwt:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.12.5"}],"ecosystem":"Maven","package":"io.jsonwebtoken:jjwt-impl","purl":"pkg:maven/io.jsonwebtoken/jjwt-impl","source":"ghsa"}],"references":[{"url":"https://github.com/jwtk/jjwt","tags":["package","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.viralpatel.net/java-create-validate-jwt-token/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/2308652512/JJWT_BUG","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31033","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jwtk/jjwt/blob/26948610fbef81eba867cbaad54b516d1874c70a/impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtParserBuilder.java#L242","tags":["web"],"sources":["ghsa"]},{"url":"https://www.viralpatel.net/java-create-validate-jwt-token","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-04-01T18:18:57.748Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31033","url":"https://www.cve.org/CVERecord?id=CVE-2024-31033","licence":"CVE Terms of Use","modified":"2024-08-27T17:59:14.397Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r65j-6h5f-4f92","url":"https://github.com/advisories/GHSA-r65j-6h5f-4f92","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:11.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31033","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31033","licence":"Public domain","modified":"2026-06-17T07:27:42.343Z"}],"updatedAt":"2026-11-25T22:58:38.187Z","epss":{"score":0.00776,"percentile":0.57001,"date":"2026-12-01T12:00:22.000Z"}}