CVE-2025-53864
MEDIUM 5.8CVSS 3.1Nimbus JOSE + JWT is vulnerable to DoS attacks when processing deeply nested JSON
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.
- Published
- 11 Jul 2025
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-674
- Also known as
- GHSA-xwmg-2g98-w7v9
- Sources
- NVDJSONOSV GHSA-xwmg-2g98-w7v9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | com.nimbusds:nimbus-jose-jwt | >= 9.38-rc1, < 10.0.2 | 10.0.2 |
| OSV | Maven | com.nimbusds:nimbus-jose-jwt | < 9.37.4 | 9.37.4 |
References
- https://bitbucket.org/connect2id/nimbus-jose-jwt/commits/f7fb882cc08f027c9ceb874acec3b51c6222861c · WEB
- https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/583/stackoverflowerror-due-to-deeply-nested · WEB
- https://bitbucket.org/connect2id/nimbus-jose-jwt/issues/593/back-port-cve-2025-53864-fix-to-9x-branch · WEB
- https://github.com/google/gson/commit/1039427ff0100293dd3cf967a53a55282c0fef6b · WEB
- https://github.com/google/gson/compare/gson-parent-2.11.0...gson-parent-2.12.0 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-53864 · ADVISORY
- https://bitbucket.org/connect2id/nimbus-jose-jwt · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 11 Jul 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 Jul 2025)