MODERATE 7.5

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:

  1. Reads deeply nested (1000s of levels) JSON as JsonNode (ObjectMapper.readTree())
  2. 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)

ArtifactAffected versionsFixed in
com.fasterxml.jackson.core » jackson-databind
>= 2.10.0, < 2.14.0
2.14.0

Blast radius

1affected artifacts
81affected versions
77,151dependent artifacts (est.)
3,356,075dependent versions

52% of the dependent artifacts (40,655) still pull an affected version in their latest release.

DepthDependent 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

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.