Skip to main content
VulnerabilityPublished Updated

CVE-2024-31033: jjwt

Affects jjwtSource CVE Database V5

0

Not known to be exploited · CVSS 6.8 Medium.

Data as of 26 Oct 2026, 10:12 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Mavenio.jsonwebtoken/jjwtpkg:maven/io.jsonwebtoken/jjwtOther threatsAffected
  • <=0.12.5
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.

References

Community reviews

Loading reviews…