CVE-2026-59888
jackson-databind: @JsonIgnore on a Record property is bypassed with a PropertyNamingStrategy
Description
Summary
For Java Records, POJOPropertiesCollector._removeUnwantedIgnorals() records a @JsonIgnore-annotated component under its original implicit name before _renameUsing() applies the PropertyNamingStrategy. After the rename, _ignoredPropertyNames still holds only the pre-rename name, so _ignorableProps is built from the stale key. The renamed JSON key passes IgnorePropertiesUtil.shouldIgnore() and is assigned to the Record's constructor parameter, defeating the @JsonIgnore.
Impact
A Record using a naming strategy that relies on @JsonIgnore to keep an internal/privileged component out of deserialization can have that component set from the wire via its renamed key (e.g. a role/flag controlled by an untrusted client).
Affected / Patched (verified via git tag --contains)
- 2.15-2.18 line:
>= 2.15.0, < 2.18.8-> fixed in 2.18.8 (backportc7c6783) - 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 (#5974,baa2cdf)
Severity / CWE
Maintainer: minor. Reporter: Moderate. CWE-915; related CWE-345.
Credits
Omkhar Arasaratnam (@omkhar) - finder.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.fasterxml.jackson.core » jackson-databind | >= 2.15.0, < 2.18.8>= 2.19.0, < 2.21.4 | 2.18.8, 2.21.4 |
| tools.jackson.core » jackson-databind | >= 3.0.0, < 3.1.4 | 3.1.4 |
Blast radius
67% of the dependent artifacts (48,287) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 392,377 |
| 2 hops | 826,560 |
| 3 hops | 513,592 |
| 4 hops | 242,358 |
| 5 hops | 96,062 |
| 6 hops | 29,002 |
Most used dependents
- org.sonatype.central » central-publishing-maven-plugin22,513 usages
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework.boot » spring-boot-maven-plugin8,665 usages
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- com.fasterxml.jackson.dataformat » jackson-dataformat-yaml6,005 usages
- com.fasterxml.jackson.module » jackson-module-kotlin4,004 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- com.fasterxml.jackson.dataformat » jackson-dataformat-xml2,908 usages
- org.apache.spark » spark-core2,899 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- com.fasterxml.jackson.jaxrs » jackson-jaxrs-json-provider2,579 usages
- org.apache.avro » avro2,427 usages
- cheshire » cheshire2,075 usages
- org.glassfish.jersey.media » jersey-media-json-jackson1,897 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-databind/security/advisories/GHSA-3pjw-73gf-8qr5
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-59888
- Webhttps://github.com/FasterXML/jackson-databind/pull/5974
- Webhttps://github.com/FasterXML/jackson-databind/commit/baa2cdf5ca2b2717fbb88d91955d69d8651df3e4
- Webhttps://github.com/FasterXML/jackson-databind/commit/c7c678360624da5bc7eed2152789fa522880db9d
- Packagehttps://github.com/FasterXML/jackson-databind
