CVE-2026-54512
jackson-databind: PolymorphicTypeValidator bypass via generic type parameters allows arbitrary class instantiation
Also known as GHSA-j3rv-43j4-c7qm
Mitigation
- Upgrade com.fasterxml.jackson.core:jackson-databind to one of 2.18.8, 3.1.4, 2.21.4 (or later in the same release line).
- Upgrade tools.jackson.core:jackson-databind to 3.1.4 or later.
Who should check
- Projects that depend on Maven package com.fasterxml.jackson.core:jackson-databind (>= 2.10.0, < 2.18.8)
- Projects that depend on Maven package tools.jackson.core:jackson-databind (>= 3.0.0, < 3.1.4)
- Anyone running FasterXML jackson-databind >= 2.10.0, < 2.18.8; >= 2.19.0, < 2.21.4; >= 3.0.0, < 3.1.4
Vulnerability facts
- Affected
- com.fasterxml.jackson.core:jackson-databind >= 2.10.0, < 2.18.8; tools.jackson.core:jackson-databind >= 3.0.0, < 3.1.4
- Fixed in
- 2.18.8, 3.1.4, 2.21.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 1.00% chance of exploitation in 30 days (percentile 62, 2026-11-26)
- CWE
- CWE-184, CWE-502
- Modified
Description
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.10.0 until 2.18.8, 2.21.4, and 3.1.4, jackson-databind's PolymorphicTypeValidator (PTV) is the primary safety mechanism guarding polymorphic deserialization. When polymorphic typing is enabled and a type identifier contains generic parameters (i.e. the type ID string contains <), DatabindContext._resolveAndValidateGeneric() validates only the raw container class name (the substring before <) against the configured PTV. If the container type is approved, the method parses the full canonical type string via TypeFactory.constructFromCanonical() and returns the fully parameterized type without ever validating the nested type arguments against the PTV. The nested type arguments are then resolved, instantiated, and populated as beans during deserialization. An attacker who controls the type ID can therefore place a denied class as a generic type parameter of an allowed container — for example java.util.ArrayList<com.evil.Gadget> when only java.util.ArrayList is allow-listed. The container passes the PTV check; com.evil.Gadget is loaded via Class.forName(name, true, loader), instantiated, and its properties are set from attacker-controlled JSON. This completely bypasses an explicitly configured PTV allow-list. This vulnerability is fixed in 2.18.8, 2.21.4, and 3.1.4.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven com.fasterxml.jackson.core:jackson-databind | >= 2.10.0, < 2.18.8 | 2.18.8, 3.1.4, 2.21.4 | osv |
| Maven tools.jackson.core:jackson-databind | >= 3.0.0, < 3.1.4 | 3.1.4 | osv |
| FasterXML jackson-databind | >= 2.10.0, < 2.18.8; >= 2.19.0, < 2.21.4; >= 3.0.0, < 3.1.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-54512. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-54512.md Affected: com.fasterxml.jackson.core:jackson-databind >= 2.10.0, < 2.18.8; tools.jackson.core:jackson-databind >= 3.0.0, < 3.1.4 Fixed in: 2.18.8, 3.1.4, 2.21.4 Steps: 1. Search this machine and project for com.fasterxml.jackson.core:jackson-databind (Maven), tools.jackson.core:jackson-databind (Maven), FasterXML jackson-databind: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-54512 being exploited?
There is no confirmed exploitation: CVE-2026-54512 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-54512?
High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-54512?
com.fasterxml.jackson.core:jackson-databind >= 2.10.0, < 2.18.8; tools.jackson.core:jackson-databind >= 3.0.0, < 3.1.4.
Is there a fix for CVE-2026-54512?
Yes. Fixed in 2.18.8, 3.1.4, 2.21.4. Upgrade com.fasterxml.jackson.core:jackson-databind to one of 2.18.8, 3.1.4, 2.21.4 (or later in the same release line). Upgrade tools.jackson.core:jackson-databind to 3.1.4 or later.
How do I check if I'm affected by CVE-2026-54512?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.