CVE-2024-31033
MEDIUM 6.8CVSS 3.1Withdrawn: JJWT improperly generates signing keys
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.
- Published
- 1 Apr 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-327
- Also known as
- GHSA-r65j-6h5f-4f92
- Sources
- NVDJSONOSV GHSA-r65j-6h5f-4f92JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | io.jsonwebtoken:jjwt-impl | <= 0.12.5 |
References
- https://github.com/2308652512/JJWT_BUG · WEB
- https://github.com/jwtk/jjwt · PACKAGE
- https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358 · WEB
- https://www.viralpatel.net/java-create-validate-jwt-token/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-31033 · ADVISORY
- https://github.com/jwtk/jjwt/blob/26948610fbef81eba867cbaad54b516d1874c70a/impl/src/main/java/io/jsonwebtoken/impl/DefaultJwtParserBuilder.java#L242 · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 1 Apr 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Apr 2024)