HighGHSA-h46c-h94j-95f3CVE-2025-52999

jackson-core can throw a StackoverflowError when processing deeply nested data

Published 27 Jun 2025 · Updated 10 Sept 2026

Is your project on an affected com.fasterxml.jackson.core:jackson-core?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.15.0
Fixed in
2.15.0
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=com.fasterxml.jackson.core:jackson-core -DdepVersion=2.15.0 -DforceVersion=true

Details

Impact

With older versions of jackson-core, if you parse an input file and it has deeply nested data, Jackson could end up throwing a StackoverflowError if the depth is particularly large.

Patches

jackson-core 2.15.0 contains a configurable limit for how deep Jackson will traverse in an input document, defaulting to an allowable depth of 1000. Change is in https://github.com/FasterXML/jackson-core/pull/943. 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.

Is GHSA-h46c-h94j-95f3 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected com.fasterxml.jackson.core:jackson-core, and gives you the command that fixes it.

More advisories for com.fasterxml.jackson.core:jackson-core

  • HighCVE-2026-89425jackson-core: UTF8DataInputJsonParser._reportInvalidToken() missing maxErrorTokenLength limit -> unbounded StringBuilder growth (DoS) · 1 Oct 2026
  • HighCVE-2026-89407 jackson-core: ReDoS: quadratic backtracking in NumberInput.PATTERN_FLOAT via looksLikeValidNumber() · 1 Oct 2026
  • HighCVE-2026-68494jackson-core: Async parser maxNumberLength bypass via chunked digit accumulation (incomplete fix for GHSA-72hv-8253-57qq) · 21 Jul 2026
  • MediumCVE-2026-18401jackson-core: Number Length Constraint Bypass in Async Parser Leads to Potential DoS Condition · 28 Feb 2026
  • MediumCVE-2025-49128Jackson-core Vulnerable to Memory Disclosure via Source Snippet in JsonLocation · 7 Jun 2025
com.fasterxml.jackson.core:jackson-core security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.