CVE-2024-31033: jjwt
Affects jjwtSource CVE Database V5
Not known to be exploited · CVSS 6.8 Medium.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 55% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavenio.jsonwebtoken/jjwtpkg:maven/io.jsonwebtoken/jjwtOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should ensure they are using the latest stable version of the JJWT library, as the vendor indicates that the vulnerability does not exist in current versions. Developers must carefully validate and sanitize cryptographic keys used for JWT signing and verification to avoid user errors that could lead to ignored characters. Implement strict key management policies, including using keys of sufficient length and complexity, and avoid deprecated or outdated library versions. Conduct thorough code reviews and security testing focused on JWT handling and key usage. Additionally, consider implementing defense-in-depth measures such as token expiration, audience validation, and signature verification using multiple factors. Monitoring for unusual authentication patterns and anomalies in token usage can also help detect potential exploitation attempts.
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.