CVE-2025-53864
Nimbus JOSE + JWT is vulnerable to DoS attacks when processing deeply nested JSON
Description
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.nimbusds » nimbus-jose-jwt | < 9.37.4>= 9.38-rc1, < 10.0.2 | 9.37.4, 10.0.2 |
Blast radius
57% of the dependent artifacts (8,548) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 68,905 |
| 2 hops | 371,553 |
| 3 hops | 420,017 |
| 4 hops | 368,130 |
| 5 hops | 214,411 |
| 6 hops | 195,131 |
Most used dependents
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- com.microsoft.sqlserver » mssql-jdbc1,206 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
- org.apache.spark » spark-mllib831 usages
- com.vaadin » vaadin-server810 usages
- org.apache.solr » solr-solrj784 usages
- com.azure » azure-identity773 usages
- org.apache.flink » flink-core735 usages
- com.atlassian.confluence » confluence724 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-53864
- Webhttps://github.com/google/gson/commit/1039427ff0100293dd3cf967a53a55282c0fef6b
- Packagehttps://bitbucket.org/connect2id/nimbus-jose-jwt
- Webhttps://bitbucket.org/connect2id/nimbus-jose-jwt/commits/f7fb882cc08f027c9ceb874acec3b51c6222861c
- Webhttps://bitbucket.org/connect2id/nimbus-jose-jwt/issues/583/stackoverflowerror-due-to-deeply-nested
- Webhttps://bitbucket.org/connect2id/nimbus-jose-jwt/issues/593/back-port-cve-2025-53864-fix-to-9x-branch
- Webhttps://github.com/google/gson/compare/gson-parent-2.11.0...gson-parent-2.12.0
