NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-50193: jackson-databind: Deeply nested JsonNode throws StackOverflowError for toString()

mediumCVSS 4.0 6.3 · 3.1 7.5GHSA-3wrr-7qpf-2prh

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).

Published Jun 23, 2026 · Updated Jul 20, 2026

Affected packages

com.fasterxml.jackson.core:jackson-databind

Ecosystem
Maven
Affected
>= 2.10.0, <= 2.13.5
Fixed in
2.14.0
Check
mvn dependency:tree -Dincludes=com.fasterxml.jackson.core:jackson-databind

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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)

Credited to deniz-husaj, cowtowncoder.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries