jackson-databind retains every unknown raw type ID
Published 30 Sept 2026 · Updated 30 Sept 2026
Is your project on an affected com.fasterxml.jackson.core:jackson-databind?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=2.0.0 <2.18.11
- Fixed in
- 2.18.11
mvn versions:use-dep-version -Dincludes=com.fasterxml.jackson.core:jackson-databind -DdepVersion=2.18.11 -DforceVersion=true- Affected
- >=2.19.0 <2.21.7
- Fixed in
- 2.21.7
mvn versions:use-dep-version -Dincludes=com.fasterxml.jackson.core:jackson-databind -DdepVersion=2.21.7 -DforceVersion=true- Affected
- >=2.22.0 <2.22.3
- Fixed in
- 2.22.3
mvn versions:use-dep-version -Dincludes=com.fasterxml.jackson.core:jackson-databind -DdepVersion=2.22.3 -DforceVersion=true- Affected
- >=3.0.0 <3.1.7
- Fixed in
- 3.1.7
mvn versions:use-dep-version -Dincludes=tools.jackson.core:jackson-databind -DdepVersion=3.1.7 -DforceVersion=true- Affected
- >=3.2.0 <3.2.3
- Fixed in
- 3.2.3
mvn versions:use-dep-version -Dincludes=tools.jackson.core:jackson-databind -DdepVersion=3.2.3 -DforceVersion=trueDetails
Summary
With @JsonTypeInfo(use = Id.NAME, defaultImpl = ...), every distinct unknown
raw type ID selects the same fallback deserializer but is retained as a
separate key in TypeDeserializerBase._deserializers. An attacker who can
repeatedly supply new unknown type IDs can grow this process-lifetime cache
without a configured bound.
Details
The affected path is TypeDeserializerBase._findDeserializer(). After an
unknown name-based type ID resolves to the configured fallback/default
implementation, jackson-databind caches the result under the attacker-provided
raw typeId. Although all such IDs select the same fallback deserializer, each
new string remains a distinct cache key.
The behavior is runtime-confirmed in jackson-databind 2.22.1 and 3.2.1.
Current 2.22 and 3.2 source branches retained the unbounded _deserializers
map and per-raw-ID cache write when rechecked. The earlier affected floor has
not been established, patched versions are: 2.18.11, 2.21.7, 2.22.3, 3.1.7 and 3.2.3.
The vulnerable application must enable name-based polymorphism with a
defaultImpl or equivalent fallback, accept attacker-influenced type IDs, and
reuse a long-lived mapper/type deserializer across requests.
Suggested correction: avoid caching each unknown raw ID when every such ID resolves to the same fallback, use a fallback sentinel, or use an explicitly bounded concurrency-safe cache. A regression should contrast many distinct unknown IDs with repetitions of one unknown ID across requests.
PoC
Configure a polymorphic base type with
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, defaultImpl = Fallback.class) and
deserialize inputs containing unknown type names through the same mapper.
Inspect TypeDeserializerBase._deserializers after the run.
On affected 2.x and 3.x versions, 10,000 distinct unknown raw type IDs produce 10,000 retained cache entries even though every input selects the same fallback deserializer. A matched control that repeats one unknown ID 10,000 times produces one retained entry. This isolates attacker-controlled key cardinality from ordinary request count.
Impact
Where the stated polymorphic fallback configuration is exposed to attacker-influenced type IDs, distinct inputs cause incremental process-lifetime memory retention and eventual availability pressure or denial of service. This is not claimed as a single-request allocation spike, and no fixed bytes-per-ID or time-to-out-of-memory value is asserted. No confidentiality, integrity, or code-execution impact is claimed.
Requested credit: Daniel Birtwhistle
Is GHSA-wv8q-qhhj-9h54 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-databind, and gives you the command that fixes it.
More advisories for com.fasterxml.jackson.core:jackson-databind
- HighCVE-2026-91777jackson-databind quadratic forward-reference completion · 30 Sept 2026
- MediumCVE-2026-83557jackson-databind: Comparable missing from DefaultBaseTypeLimitingValidator's unsafe base types (incomplete PolymorphicTypeValidator denylist) · 28 Sept 2026
- HighCVE-2026-68497jackson-databind: Duration XMLGregorianCalendar Unbounded Number Parse DoS · 28 Sept 2026
- MediumCVE-2026-19032jackson-databind: Path Deserialization Missing Scheme Allowlist for FileSystemProvider Resolution · 28 Sept 2026
- MediumCVE-2026-77310jackson-databind: Incomplete fix for CVE-2026-54514: eager DNS resolution (SSRF) still present in InetAddress deserialization · 28 Sept 2026
- MediumCVE-2026-59889jackson-databind: @JsonView bypassed for @JsonUnwrapped container properties on deserialization · 21 Jul 2026
References
- Linkgithub.com/FasterXML/jackson-databind/security/advisories/GHSA-wv8q-qhhj-9h54
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-91776
- Linkgithub.com/FasterXML/jackson-databind/issues/6203
- Linkgithub.com/FasterXML/jackson-databind/commit/2870d1d6dc1b7e1c07ee11dd5b04ab71cddbb577
- Packagegithub.com/FasterXML/jackson-databind
- Linkgithub.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.18.11
- Linkgithub.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.21.7
- Linkgithub.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.22.3
- Linkgithub.com/FasterXML/jackson-databind/releases/tag/jackson-databind-3.1.7
- Linkgithub.com/FasterXML/jackson-databind/releases/tag/jackson-databind-3.2.3
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.