GitHub Advisoryadvisory · Maven

GHSA-3wrr-7qpf-2prh jackson-databind: Deeply nested JsonNode throws StackOverflowError for toString()

MEDIUM Published 2026-06-23 Modified 2026-07-20 Official page ↗
Aliases
CVE-2026-50193
Ecosystem
Maven
Packages
com.fasterxml.jackson.core:jackson-databind
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400
Reviewed
2026-06-23

Affected packages

• Maven com.fasterxml.jackson.core:jackson-databind: >= 2.10.0, < 2.14.0 → fixed in 2.14.0

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)

Related

Alias · CVE (1)

  • CVE-2026-50193 jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. vulnerability

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References