# CVE-2026-89425: jackson-core: UTF8DataInputJsonParser.\_reportInvalidToken() does not honor maxErrorTokenLength, allowing unbounded StringBuilder growth

> 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.61% (percentile 44, 2026-11-26)
- **CWE:** CWE-770, CWE-400
- **Aliases:** GHSA-7hhh-6rmp-j9qf
- **Published:** 2026-09-23T02:06:10.571Z
- **Modified:** 2026-10-01T15:30:05.552Z

## Who should check

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

## Description

UTF8DataInputJsonParser.\_reportInvalidToken() in FasterXML jackson-core builds the offending-token text for its error message by appending Java identifier characters to a StringBuilder in a loop that has no upper bound. Unlike the three sibling parser implementations, including UTF8StreamJsonParser, it never consults ErrorReportConfiguration.getMaxErrorTokenLength() (default 256). A malformed token supplied to a parser created through JsonFactory.createParser(DataInput) is therefore accumulated in full. No StreamReadConstraints setting mitigates this: maxDocumentLength cannot be applied to DataInput sources at all, and maxStringLength does not cover this path because the accumulation bypasses ReadConstrainedTextBuffer. The reporter measured a 20,000,109-character exception message from a 20-million-character malformed token on the DataInput path, against 367 characters for identical input on the InputStream path. Scaling the payload drives the StringBuilder, which also incurs byte-to-char expansion and internal array doubling, to many times the raw payload size and can trigger OutOfMemoryError for the whole JVM. UTF8DataInputJsonParser was introduced in 2.8.0 together with createParser(DataInput); releases before 2.8.0 do not contain the affected class.

## Affected and fixed versions

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

## Mitigation

- Upgrade com.fasterxml.jackson.core:jackson-core to one of 2.21.7, 2.22.3, 2.18.11 (or later in the same release line).
- Upgrade tools.jackson.core:jackson-core to one of 3.1.7, 3.2.3 (or later in the same release line).
- Vendor workaround: No StreamReadConstraints or ErrorReportConfiguration setting mitigates this issue on the affected code path. Where possible, avoid JsonFactory.createParser(DataInput) for attacker-supplied content and use createParser(InputStream), createParser(Reader) or a byte-array overload instead; those parser implementations enforce maxErrorTokenLength correctly. Otherwise, bound input size ahead of the parser and cap JVM heap so that a single request cannot exhaust process memory.

## Check your systems with an agent

Paste this into a coding agent:

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

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

Steps:
1. Search this machine and project for com.fasterxml.jackson.core:jackson-core (Maven), tools.jackson.core:jackson-core (Maven), FasterXML jackson-core: 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-89425 being exploited?

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

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

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

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

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

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

Yes. Fixed in 2.21.7, 2.22.3, 2.18.11, 3.1.7, 3.2.3. Upgrade com.fasterxml.jackson.core:jackson-core to one of 2.21.7, 2.22.3, 2.18.11 (or later in the same release line). Upgrade tools.jackson.core:jackson-core to one of 3.1.7, 3.2.3 (or later in the same release line). Vendor workaround: No StreamReadConstraints or ErrorReportConfiguration setting mitigates this issue on the affected code path. Where possible, avoid JsonFactory.createParser(DataInput) for attacker-supplied content and use createParser(InputStream), createParser(Reader) or a byte-array overload instead; those parser implementations enforce maxErrorTokenLength correctly. Otherwise, bound input size ahead of the parser and cap JVM heap so that a single request cannot exhaust process memory.

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

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-core/security/advisories/GHSA-7hhh-6rmp-j9qf>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-89425>
- patch: <https://github.com/FasterXML/jackson-core/pull/1698>
- patch: <https://github.com/FasterXML/jackson-core/commit/211cf2c5d91abbec38067f37efc1363cd4e88ee3>
- other: <https://github.com/FasterXML/jackson-core>
- other: <https://github.com/FasterXML/jackson-core/releases/tag/jackson-core-2.18.11>
- other: <https://github.com/FasterXML/jackson-core/releases/tag/jackson-core-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-89425>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7hhh-6rmp-j9qf> (license: <https://creativecommons.org/licenses/by/4.0/>)

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