VDB
Sign up
MEDIUM5.3

GHSA-5jmj-h7xm-6q6v

jackson-databind has case-insensitive deserialization bypasses per-property @JsonIgnoreProperties

Quick fix

GHSA-5jmj-h7xm-6q6v — com.fasterxml.jackson.core:jackson-databind: upgrade to the fixed version with the command below.

# pom.xml: bump <version>3.1.4</version> for com.fasterxml.jackson.core:jackson-databind

Details

## Summary In `BeanDeserializerBase.createContextual()`, per-property `@JsonIgnoreProperties` exclusions are applied by `_handleByNameInclusion()`, producing a `contextual` deserializer whose `BeanPropertyMap` has the ignored properties removed. The subsequent per-property case-insensitivity block (triggered by `@JsonFormat(ACCEPT_CASE_INSENSITIVE_PROPERTIES)`) rebuilds from `this._beanProperties` (the original, unfiltered map) instead of `contextual._beanProperties`, then overwrites the filtered map — restoring every property `_handleByNameInclusion` had just removed. The ignored property becomes writable again.

## Impact An application that both enables case-insensitive matching and relies on per-property `@JsonIgnoreProperties` to keep a field unwritable can have that field set from untrusted JSON (mass-assignment-style write).

## Affected / Patched Will be fixed in 2.18.9, 2.21.5, 2.22.1 and 3.1.4.

## Severity / CWE Maintainer: minor. Reporter: Moderate. CWE-915.

## Upstream fix FasterXML/jackson-databind#5962 (PR #5964, `0e1b0b2`), milestone 3.1.4. Released 2026-06-04.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/com.fasterxml.jackson.core:jackson-databind
Introduced in: 3.1.0Fixed in: 3.1.4
Fix# pom.xml: bump <version>3.1.4</version> for com.fasterxml.jackson.core:jackson-databind
Maven/tools.jackson.core:jackson-databind
Introduced in: 3.1.0Fixed in: 3.1.4
Fix# pom.xml: bump <version>3.1.4</version> for tools.jackson.core:jackson-databind
Maven/com.fasterxml.jackson.core:jackson-databind
Introduced in: 2.8.0Fixed in: 2.18.9
Fix# pom.xml: bump <version>2.18.9</version> for com.fasterxml.jackson.core:jackson-databind
Maven/com.fasterxml.jackson.core:jackson-databind
Introduced in: 2.19.0Fixed in: 2.21.5
Fix# pom.xml: bump <version>2.21.5</version> for com.fasterxml.jackson.core:jackson-databind
Maven/com.fasterxml.jackson.core:jackson-databind
Introduced in: 2.22.0Fixed in: 2.22.1
Fix# pom.xml: bump <version>2.22.1</version> for com.fasterxml.jackson.core:jackson-databind

References