Nimbus JOSE + JWT is vulnerable to DoS attacks when processing deeply nested JSON
Connect2id Nimbus JOSE + JWT before 10.0.2 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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | com.nimbusds:nimbus-jose-jwt | >= 9.38-rc1, < 10.0.2, < 9.37.4 | 10.0.2, 9.37.4 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-53864
- https://github.com/google/gson/commit/1039427ff0100293dd3cf967a53a55282c0fef6b
- https://bitbucket.org/connect2id/nimbus-jose-jwt
- https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/f7fb882cc08f027c9ceb874acec3b51c6222861c
- https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/583/stackoverflowerror-due-to-deeply-nested
- https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/593/back-port-cve-2025-53864-fix-to-9x-branch
- https://github.com/google/gson/compare/gson-parent-2.11.0...gson-parent-2.12.0
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L- Weakness (CWE)
CWE-674- Platform
- Java / Kotlin (Maven)
- Package
com.nimbusds:nimbus-jose-jwt- Disclosed
- 11.07.2025
- Updated
- 11.10.2026 13:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-xwmg-2g98-w7v9 - CC BY 4.0
Vulnerability history: com.nimbusds:nimbus-jose-jwt
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 6
- First → latest
- 10.2019 07.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 1
- High 3
- Medium 1
- Low 1
Disclosures per year
- 2019: 1
- 2020: 0
- 2021: 0
- 2022: 3
- 2023: 0
- 2024: 1
- 2025: 1
- 2026: 0
-
Nimbus JOSE + JWT is vulnerable to DoS attacks when processing deeply nested JSON this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.