CVE-2026-29062
jackson-core has Nesting Depth Constraint Bypass in `UTF8DataInputJsonParser` potentially allowing Resource Exhaustion
Description
Summary
The UTF8DataInputJsonParser, which is used when parsing from a java.io.DataInput source, bypasses the maxNestingDepth constraint (default: 500) defined in StreamReadConstraints.
A similar issue was found in ReaderBasedJsonParser.
This allows a user to supply a JSON document with excessive nesting, which can cause a StackOverflowError when the structure is processed, leading to a Denial of Service (DoS).
The related fix for com.fasterxml.jackson.core:jackson-core, CVE-2025-52999, was not fully applied to tools.jackson.core:jackson-core until the 3.1.0 release. It is recommended that 3.0.x users upgrade.
Patches
jackson-core contains a configurable limit for how deep Jackson will traverse in an input document. This check was missing in a few places in tools.jackson.core:jackson-core.
The change is in https://github.com/FasterXML/jackson-core/pull/1554. jackson-core will throw a StreamConstraintsException if the limit is reached.
jackson-databind also benefits from this change because it uses jackson-core to parse JSON inputs.
Workarounds
Users should avoid parsing input files from untrusted sources.
Resources
GHSA-6v53-7c9g-w56r https://nvd.nist.gov/vuln/detail/CVE-2025-52999 https://github.com/FasterXML/jackson-core/pull/1554
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| tools.jackson.core » jackson-core | >= 3.0.0, < 3.1.0 | 3.1.0 |
Blast radius
48% of the dependent artifacts (2,771) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,049 |
| 2 hops | 6,821 |
| 3 hops | 13,806 |
| 4 hops | 19,378 |
| 5 hops | 8,468 |
| 6 hops | 3,766 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-maven-plugin8,665 usages
- tools.jackson.core » jackson-databind3,846 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- com.github.tomakehurst » wiremock1,838 usages
- org.flywaydb » flyway-core1,662 usages
- net.logstash.logback » logstash-logback-encoder1,470 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- org.springdoc » springdoc-openapi-starter-webmvc-ui1,040 usages
- org.springframework.cloud » spring-cloud-starter-config978 usages
- com.networknt » json-schema-validator837 usages
- tools.jackson.dataformat » jackson-dataformat-yaml778 usages
- org.springframework.boot » spring-boot-starter-webmvc777 usages
- org.springframework.boot » spring-boot-starter-json743 usages
- com.vaadin » vaadin-core640 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-core/security/advisories/GHSA-6v53-7c9g-w56r
- Webhttps://github.com/FasterXML/jackson-core/security/advisories/GHSA-h46c-h94j-95f3
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-52999
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-29062
- Webhttps://github.com/FasterXML/jackson-core/pull/1554
- Webhttps://github.com/FasterXML/jackson-core/commit/8b25fd67f20583e75fb09564ce1eaab06cd5a902
- Packagehttps://github.com/FasterXML/jackson-core
