CVE-2025-53864: Connect2id Nimbus JOSE+JWT · Uncontrolled Recursion
Affects Connect2id Nimbus JOSE+JWTSource CVE Database V5
Not known to be exploited · CVSS 5.8 Medium : upgrade to 10.0.2 or 9.37.4 when convenient.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 10.0.2, 9.37.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 11 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
Upgrade com.nimbusds/nimbus-jose-jwt to 10.0.2 or 9.37.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Mavencom.nimbusds/nimbus-jose-jwtpkg:maven/com.nimbusds/nimbus-jose-jwtOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should take immediate steps to mitigate this vulnerability beyond generic advice. First, identify all applications and services using the Connect2id Nimbus JOSE+JWT library, focusing on versions prior to 10.0.2 and 9.37.4. If patches are not yet released, implement compensating controls such as input validation to limit the depth of JSON objects within JWT claim sets before processing. This can be done by enforcing strict schema validation or using custom JSON parsers that impose nesting limits. Additionally, deploy Web Application Firewalls (WAFs) or API gateways with rules to detect and block JWTs containing suspiciously deep or complex JSON structures. Monitoring and alerting on unusual JWT payload sizes or parsing errors can help detect exploitation attempts early. Rate limiting JWT validation requests can reduce the risk of resource exhaustion from repeated attacks. Finally, conduct thorough code reviews and security testing on JWT handling components to ensure no other uncontrolled recursion or resource exhaustion vulnerabilities exist. Document and update incident response plans to include scenarios involving JWT-based denial of service attacks.
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.
References
- bitbucket.org/connect2id/nimbus-jose-jwt/issues/583/stackoverflowerror-due-to-deeply-nested (opens in a new tab)
- github.com/google/gson/compare/gson-parent-2.11.0...gson-parent-2.12.0 (opens in a new tab)
- github.com/google/gson/commit/1039427ff0100293dd3cf967a53a55282c0fef6b (opens in a new tab)
- bitbucket.org/connect2id/nimbus-jose-jwt/commits/f7fb882cc08f027c9ceb874acec3b51c6222861c (opens in a new tab)
- bitbucket.org/connect2id/nimbus-jose-jwt/issues/593/back-port-cve-2025-53864-fix-to-9x-branch (opens in a new tab)