CVE-2025-53864
Nimbus JOSE + JWT is vulnerable to DoS attacks when processing deeply nested JSON
Also known as GHSA-xwmg-2g98-w7v9
Mitigation
- Upgrade com.nimbusds:nimbus-jose-jwt to one of 10.0.2, 9.37.4 (or later in the same release line).
Who should check
- Projects that depend on Maven package com.nimbusds:nimbus-jose-jwt (>= 9.38-rc1, < 10.0.2)
- Anyone running Connect2id Nimbus JOSE+JWT < 10.0.2
Vulnerability facts
- Affected
- com.nimbusds:nimbus-jose-jwt >= 9.38-rc1, < 10.0.2
- Fixed in
- 10.0.2, 9.37.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 1.25% chance of exploitation in 30 days (percentile 69, 2026-11-26)
- CWE
- CWE-674
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven com.nimbusds:nimbus-jose-jwt | >= 9.38-rc1, < 10.0.2 | 10.0.2, 9.37.4 | osv |
| Connect2id Nimbus JOSE+JWT | < 10.0.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-53864. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-53864.md Affected: com.nimbusds:nimbus-jose-jwt >= 9.38-rc1, < 10.0.2 Fixed in: 10.0.2, 9.37.4 Steps: 1. Search this machine and project for com.nimbusds:nimbus-jose-jwt (Maven), Connect2id Nimbus JOSE+JWT: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
Other
- https://github.com/google/gson/compare/gson-parent-2.11.0...gson-parent-2.12.0
- https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/f7fb882cc08f027c9ceb874acec3b51c6222861c
- https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/593/back-port-cve-2025-53864-fix-to-9x-branch
- https://bitbucket.org/connect2id/nimbus-jose-jwt
FAQ
Is CVE-2025-53864 being exploited?
There is no confirmed exploitation: CVE-2025-53864 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-53864?
Medium: CVSS 5.8 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-53864?
com.nimbusds:nimbus-jose-jwt >= 9.38-rc1, < 10.0.2.
Is there a fix for CVE-2025-53864?
Yes. Fixed in 10.0.2, 9.37.4. Upgrade com.nimbusds:nimbus-jose-jwt to one of 10.0.2, 9.37.4 (or later in the same release line).
How do I check if I'm affected by CVE-2025-53864?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.