CVE-2026-50193
jackson-databind: Deeply nested JsonNode throws StackOverflowError for toString()
Description
Impact
Potential Denial-of-Service when attacker sends deeply nested JSON if (and only if) service:
- Reads deeply nested (1000s of levels) JSON as
JsonNode(ObjectMapper.readTree()) - Writes out same (or modifided) node using
JsonNode.toString()
which can consume significant amount of resources with concurrent relatively small requests (1000 nested arrays is 2kB).
Patches
Fixed in 2.14.0 via https://github.com/FasterXML/jackson-databind/issues/3447.
Workarounds
Avoid serializing JsonNode using toString(): use ObjectMapper.writeValueAsString(node)
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core » jackson-databind | >= 2.10.0, < 2.14.0 | 2.14.0 |
Blast radius
52% of the dependent artifacts (40,655) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 563,065 |
| 2 hops | 1,525,081 |
| 3 hops | 801,466 |
| 4 hops | 331,322 |
| 5 hops | 105,134 |
| 6 hops | 30,007 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-maven-plugin8,665 usages
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- com.fasterxml.jackson.dataformat » jackson-dataformat-yaml6,005 usages
- org.testcontainers » testcontainers4,109 usages
- com.fasterxml.jackson.module » jackson-module-kotlin4,004 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- com.fasterxml.jackson.dataformat » jackson-dataformat-xml2,908 usages
- org.apache.spark » spark-core2,899 usages
- org.testcontainers » junit-jupiter2,899 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- com.fasterxml.jackson.jaxrs » jackson-jaxrs-json-provider2,579 usages
- org.apache.avro » avro2,427 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
- Webhttps://github.com/FasterXML/jackson-databind/security/advisories/GHSA-3wrr-7qpf-2prh
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-50193
- Webhttps://github.com/FasterXML/jackson-databind/issues/3447
- Webhttps://github.com/FasterXML/jackson-databind/commit/a1fa4ae4ecf5cee16da465985f135f3e81816f8c
- Packagehttps://github.com/FasterXML/jackson-databind
