6.5medium
jackson-databind: @JsonIgnore on a Record property is bypassed with a PropertyNamingStrategy
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3pjw-73gf-8qr5
Description
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.15.0 until 2.18.8, 2.21.4, and 3.1.4, Java Records using a PropertyNamingStrategy can bypass @JsonIgnore because POJOPropertiesCollector._removeUnwantedIgnorals() records an ignored component under its original implicit name before _renameUsing() applies the naming strategy, allowing the renamed JSON key to be assigned to the Record constructor parameter. This issue is fixed in versions 2.18.8, 2.21.4, and 3.1.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FasterXML jackson-databind | >= 2.15.0, < 2.18.8, >= 2.19.0, < 2.21.4, >= 3.0.0, < 3.1.4 | CVE List |
| com.fasterxml.jackson.core:jackson-databind (Maven) | from 2.15.0 before 2.18.8, from 2.19.0 before 2.21.4 | GitHub Advisory Database |
| tools.jackson.core:jackson-databind (Maven) | from 3.0.0 before 3.1.4 | GitHub Advisory Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
jackson-databind contains the general-purpose data-binding functionality and tree-model for Jackson Data Processor. From 2.15.0 until 2.18.8, 2.21.4, and 3.1.4, Java Records using a PropertyNamingStrategy can bypass @JsonIgnore because POJOPropertiesCollector._removeUnwantedIgnorals() records an ignored component under its original implicit name before _renameUsing() applies the naming strategy, allowing the renamed JSON key to be assigned to the Record constructor parameter. This issue is fixed in versions 2.18.8, 2.21.4, and 3.1.4.
GitHub Advisory Database
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.
NVD (es)
jackson-databind contiene la funcionalidad de enlace de datos de propósito general y el modelo de árbol para el Procesador de Datos Jackson. Desde 2.15.0 hasta 2.18.8, 2.21.4 y 3.1.4, los Registros Java que utilizan una PropertyNamingStrategy pueden eludir @JsonIgnore porque POJOPropertiesCollector._removeUnwantedIgnorals() registra un componente ignorado bajo su nombre implícito original antes de que _renameUsing() aplique la estrategia de nomenclatura, permitiendo que la clave JSON renombrada se asigne al parámetro del constructor del Registro. Este problema está solucionado en las versiones 2.18.8, 2.21.4 y 3.1.4.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59888 changed 2026-07-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3pjw-73gf-8qr5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-59888 changed 2026-10-24 | Public domain |