Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.jsonwebtoken/jjwt-root
  4. ›
  5. CVE-2024-31033

CVE-2024-31033: JJWT improperly generates signing keys

April 1, 2024

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.

References

  • github.com/2308652512/JJWT_BUG
  • github.com/advisories/GHSA-r65j-6h5f-4f92
  • github.com/jwtk/jjwt
  • nvd.nist.gov/vuln/detail/CVE-2024-31033
  • www.viralpatel.net/java-create-validate-jwt-token

Code Behaviors & Features

Detect and mitigate CVE-2024-31033 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.12.5

Solution

Unfortunately, there is no solution available yet.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-327: Use of a Broken or Risky Cryptographic Algorithm

Source file

maven/io.jsonwebtoken/jjwt-root/CVE-2024-31033.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:26 +0000.