Maven · com.fasterxml.jackson.core:jackson-databind
jackson-databind: Deeply nested JsonNode throws StackOverflowError for toString()
Potential Denial-of-Service when attacker sends deeply nested JSON if (and only if) service:
JsonNode (ObjectMapper.readTree())JsonNode.toString()which can consume significant amount of resources with concurrent relatively small requests (1000 nested arrays is 2kB).
Fixed in 2.14.0 via https://github.com/FasterXML/jackson-databind/issues/3447.
Avoid serializing JsonNode using toString(): use ObjectMapper.writeValueAsString(node)
Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.