# CVE-2024-31033: JJWT (aka Java JWT) through 0.12.5 ignores certain characters and thus a user might falsely conclude that they have a strong key.

- Severity: Medium 6.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-04-01T00:00:00.000Z
- Modified: 2026-09-10T03:50:11.552Z
- Also known as: GHSA-r65j-6h5f-4f92
- Weaknesses: CWE-327
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- jwtk jjwt: up to 0.12.5
- io.jsonwebtoken:jjwt-impl (Maven): up to 0.12.5

## Every score

- CISA-ADP: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/jwtk/jjwt> (package)
- <https://www.viralpatel.net/java-create-validate-jwt-token/>
- <https://github.com/2308652512/JJWT_BUG> (web)
- <https://github.com/jwtk/jjwt/issues/930#issuecomment-2032699358> (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)
- <https://www.viralpatel.net/java-create-validate-jwt-token> (web)

## Sources

- CVE List: [CVE-2024-31033](https://www.cve.org/CVERecord?id=CVE-2024-31033), CVE Terms of Use, modified 2024-08-27
- GitHub Advisory Database: [GHSA-r65j-6h5f-4f92](https://github.com/advisories/GHSA-r65j-6h5f-4f92), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-31033](https://nvd.nist.gov/vuln/detail/CVE-2024-31033), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31033 · Whole record: https://cve.day/CVE-2024-31033.json · Rebuilt by cve.day 2026-11-25T22:58:38.187Z
