Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-89425

HIGH 7.5EPSS 44%

jackson-core: UTF8DataInputJsonParser._reportInvalidToken() does not honor maxErrorTokenLength, allowing unbounded StringBuilder growth

Also known as GHSA-7hhh-6rmp-j9qf

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.

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.61% chance of exploitation in 30 days (percentile 44, 2026-11-26)
CWE
CWE-770, CWE-400
Published
Modified

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

Package / productAffectedFixedSource
Maven com.fasterxml.jackson.core:jackson-core>= 2.19.0, < 2.21.72.21.7, 2.22.3, 2.18.11osv
Maven tools.jackson.core:jackson-core>= 3.0.0, < 3.1.73.1.7, 3.2.3osv
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors