Loading...
Skip to main content

CVE-2026-54513

HIGH

jackson-databind has an array subtype allowlist bypass in BasicPolymorphicTypeValidator (allowIfSubTypeIsArray)

Published June 23, 2026Updated August 14, 2026Source: osv

Summary

## Summary `BasicPolymorphicTypeValidator.Builder.allowIfSubTypeIsArray()` allowlists any array type based only on `clazz.isArray()`, without validating the array's component (element) type against the configured allowlist. A PTV built with `allowIfSubTypeIsArray()` plus an explicit concrete-type allowlist therefore still permits `EvilType[]` even though `EvilType` is not allowlisted. When Jackson deserializes the elements and no per-element type IDs are present, it instantiates the component type directly with no further PTV check, bypassing the allowlist. ## Impact Applications using `BasicPolymorphicTypeValidator` with `allowIfSubTypeIsArray()` as a safeguard get no protection for concrete array component types; an attacker controlling JSON can instantiate non-allowlisted types via an array wrapper, re-opening the gadget-instantiation risk PTV is meant to prevent. ## Affected / Patched (verified via `git tag --contains`) - 2.18 line: `>= 2.10.0, < 2.18.8` -> fixed in **2.18.8** - 2.19-2.21 line: `>= 2.19.0, < 2.21.4` -> fixed in **2.21.4** - 3.x line: `>= 3.0.0, < 3.1.4` -> fixed in **3.1.4** `PolymorphicTypeValidator` was added in 2.10.0 so vulnerability N/A for versions prior to that. ## Severity / CWE Maintainer: significant. Reporter: HIGH. CWE-184 (Incomplete List of Disallowed Inputs); related CWE-502. ## Upstream fix FasterXML/jackson-databind#5981; fix PR #5983 (`24529da`), 2.18 backport PR #5984 (`01d1692`). Released 2026-06-04 in 2.18.8 / 2.21.4 / 3.1.4. ## Credits Omkhar Arasaratnam (@omkhar) - finder.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update com.fasterxml.jackson.core:jackson-databind to 3.1.4 or later
<!-- Update pom.xml dependency version to 3.1.4 for com.fasterxml.jackson.core:jackson-databind -->
Maven
Update tools.jackson.core:jackson-databind to 3.1.4 or later
<!-- Update pom.xml dependency version to 3.1.4 for tools.jackson.core:jackson-databind -->
Maven
Update com.fasterxml.jackson.core:jackson-databind to 2.18.8 or later
<!-- Update pom.xml dependency version to 2.18.8 for com.fasterxml.jackson.core:jackson-databind -->
Maven
Update com.fasterxml.jackson.core:jackson-databind to 2.21.4 or later
<!-- Update pom.xml dependency version to 2.21.4 for com.fasterxml.jackson.core:jackson-databind -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

PackageEcosystemAffectedFixed In
com.fasterxml.jackson.core:jackson-databind
maven
All versions3.1.4
tools.jackson.core:jackson-databind
maven
3.0.0, 3.0.1, 3.0.2, 3.0.3 (+6 more)3.1.4
com.fasterxml.jackson.core:jackson-databind
maven
2.10.0, 2.10.0.pr1, 2.10.0.pr2, 2.10.0.pr3 (+70 more)2.18.8
com.fasterxml.jackson.core:jackson-databind
maven
2.19.0, 2.19.1, 2.19.2, 2.19.3 (+9 more)2.21.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Frequently Asked Questions

What is CVE-2026-54513?
jackson-databind has an array subtype allowlist bypass in BasicPolymorphicTypeValidator (allowIfSubTypeIsArray) This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-54513?
CVE-2026-54513 affects com.fasterxml.jackson.core:jackson-databind and tools.jackson.core:jackson-databind. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54513 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-rmj7-2vxq-3g9f

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies