# CVE-2025-53864: Nimbus JOSE + JWT is vulnerable to DoS attacks when processing deeply nested JSON

- Severity: Medium 5.8 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- 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): 1.25%, higher than 69% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-11T00:00:00.000Z
- Modified: 2026-09-10T03:50:26.435Z
- Also known as: GHSA-xwmg-2g98-w7v9
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

Connect2id Nimbus JOSE + JWT 10.0.x before 10.0.2 and 9.37.x before 9.37.4 allows a remote attacker to cause a denial of service via a deeply nested JSON object supplied in a JWT claim set, because of uncontrolled recursion. NOTE: this is independent of the Gson 2.11.0 issue because the Connect2id product could have checked the JSON object nesting depth, regardless of what limits (if any) were imposed by Gson.

(As written by CVE List.)

## Affected

- Connect2id Nimbus JOSE+JWT: before 10.0.2
- com.nimbusds:nimbus-jose-jwt (Maven): from 9.38-rc1 before 10.0.2; before 9.37.4

## Every score

- mitre: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L`

## References

- <https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/583/stackoverflowerror-due-to-deeply-nested> (exploit, web)
- <https://github.com/google/gson/compare/gson-parent-2.11.0...gson-parent-2.12.0> (web)
- <https://github.com/google/gson/commit/1039427ff0100293dd3cf967a53a55282c0fef6b> (web)
- <https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/f7fb882cc08f027c9ceb874acec3b51c6222861c> (web)
- <https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/593/back-port-cve-2025-53864-fix-to-9x-branch> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-53864> (advisory)
- <https://bitbucket.org/connect2id/nimbus-jose-jwt> (package)

## Sources

- CVE List: [CVE-2025-53864](https://www.cve.org/CVERecord?id=CVE-2025-53864), CVE Terms of Use, modified 2025-09-23
- GitHub Advisory Database: [GHSA-xwmg-2g98-w7v9](https://github.com/advisories/GHSA-xwmg-2g98-w7v9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-53864](https://nvd.nist.gov/vuln/detail/CVE-2025-53864), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53864 · Whole record: https://cve.day/CVE-2025-53864.json · Rebuilt by cve.day 2026-11-25T22:59:01.135Z
