# CVE-2026-91777: jackson-databind: quadratic forward-reference completion in Collection and Map deserializers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.56% (percentile 41, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-cxp5-3px4-pw24
- **Published:** 2026-09-23T02:21:48.323Z
- **Modified:** 2026-09-30T15:46:18.051Z

## Who should check

- Projects that depend on Maven package com.fasterxml.jackson.core:jackson-databind (\>= 2.19.0, \< 2.21.7)
- Projects that depend on Maven package tools.jackson.core:jackson-databind (\>= 3.0.0, \< 3.1.7)
- Anyone running FasterXML jackson-databind \>= 2.5.0, \<= 2.18.10; \>= 2.19.0, \<= 2.21.6; \>= 2.22.0, \<= 2.22.2
- Anyone running FasterXML jackson-databind \>= 3.0.0, \<= 3.1.6; \>= 3.2.0, \<= 3.2.2

## Description

Forward-reference completion for @JsonIdentityInfo object IDs in FasterXML jackson-databind performs a linear scan of the pending-reference accumulator for every resolved ID. The affected paths are CollectionDeserializer.CollectionReferringAccumulator.resolveForwardReference() and the equivalent implementation in MapDeserializer. When a document first creates N unresolved object-ID references in an identity-enabled collection or map and then defines those same IDs in reverse order, completion performs on the order of N \* (N + 1) / 2 identity comparisons, so a shallow document whose size grows linearly causes quadratic CPU work during deserialization. The reporter instrumented equals() calls on the ID class and measured exactly 2,003,000 comparisons at N = 2,000, against zero comparisons in the pending-reference lookup path for an equally sized control in which every reference was already resolved. The input requires no deep nesting and no syntactically unusual JSON. Exploitation requires an application that deserializes attacker-influenced JSON into an identity-enabled collection or map. The fix replaces the repeated linear lookup with a keyed pending-reference structure.

## Affected and fixed versions

- Maven `com.fasterxml.jackson.core:jackson-databind`: affected \>= 2.19.0, \< 2.21.7; fixed 2.21.7, 2.18.11, 2.22.3 (osv)
- Maven `tools.jackson.core:jackson-databind`: affected \>= 3.0.0, \< 3.1.7; fixed 3.1.7, 3.2.3 (osv)
- FasterXML jackson-databind: \>= 2.5.0, \<= 2.18.10; \>= 2.19.0, \<= 2.21.6; \>= 2.22.0, \<= 2.22.2 (cvelist)
- FasterXML jackson-databind: \>= 3.0.0, \<= 3.1.6; \>= 3.2.0, \<= 3.2.2 (cvelist)

## Mitigation

- Upgrade com.fasterxml.jackson.core:jackson-databind to one of 2.21.7, 2.18.11, 2.22.3 (or later in the same release line).
- Upgrade tools.jackson.core:jackson-databind to one of 3.1.7, 3.2.3 (or later in the same release line).
- Vendor workaround: Bound the size of JSON documents deserialized into @JsonIdentityInfo-enabled collections and maps, and cap the number of elements accepted for such types, so that the quadratic term cannot be driven large. Removing @JsonIdentityInfo from types reachable from attacker-influenced input avoids the code path entirely. Wall-clock timeouts on deserialization limit the impact of a single request.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-91777. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-91777.md
Affected: com.fasterxml.jackson.core:jackson-databind >= 2.19.0, < 2.21.7; tools.jackson.core:jackson-databind >= 3.0.0, < 3.1.7
Fixed in: 2.21.7, 2.18.11, 2.22.3, 3.1.7, 3.2.3

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.
```

## FAQ

### Is CVE-2026-91777 being exploited?

There is no confirmed exploitation: CVE-2026-91777 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.56% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-91777?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-91777?

com.fasterxml.jackson.core:jackson-databind \>= 2.19.0, \< 2.21.7; tools.jackson.core:jackson-databind \>= 3.0.0, \< 3.1.7.

### Is there a fix for CVE-2026-91777?

Yes. Fixed in 2.21.7, 2.18.11, 2.22.3, 3.1.7, 3.2.3. Upgrade com.fasterxml.jackson.core:jackson-databind to one of 2.21.7, 2.18.11, 2.22.3 (or later in the same release line). Upgrade tools.jackson.core:jackson-databind to one of 3.1.7, 3.2.3 (or later in the same release line). Vendor workaround: Bound the size of JSON documents deserialized into @JsonIdentityInfo-enabled collections and maps, and cap the number of elements accepted for such types, so that the quadratic term cannot be driven large. Removing @JsonIdentityInfo from types reachable from attacker-influenced input avoids the code path entirely. Wall-clock timeouts on deserialization limit the impact of a single request.

### How do I check if I'm affected by CVE-2026-91777?

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.

## References

- vendor: <https://github.com/FasterXML/jackson-databind/security/advisories/GHSA-cxp5-3px4-pw24>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-91777>
- patch: <https://github.com/FasterXML/jackson-databind/issues/6204>
- patch: <https://github.com/FasterXML/jackson-databind/pull/6204>
- patch: <https://github.com/FasterXML/jackson-databind/commit/37ad9b81712cbb9fb62c2d2c1813593252a24b67>
- other: <https://github.com/FasterXML/jackson-databind>
- other: <https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.18.11>
- other: <https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.21.7>
- other: <https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-2.22.3>
- other: <https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-3.1.7>
- other: <https://github.com/FasterXML/jackson-databind/releases/tag/jackson-databind-3.2.3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-91777>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cxp5-3px4-pw24> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-91777> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-91777>
