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

- Severity: High 7.5 (CVSS:3.1, scored by HeroDevs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-23T02:06:10.571Z
- Modified: 2026-10-01T15:30:05.552Z
- Also known as: GHSA-7hhh-6rmp-j9qf
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: HeroDevs

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

(As written by CVE List.)

## Affected

- com.fasterxml.jackson.core:jackson-core: from 2.8.0 up to 2.18.10; from 2.19.0 up to 2.21.6; from 2.22.0 up to 2.22.2
- tools.jackson.core:jackson-core: from 3.0.0 up to 3.1.6; from 3.2.0 up to 3.2.2
- com.fasterxml.jackson.core:jackson-core (Maven): from 2.19.0 before 2.21.7; from 2.22.0 before 2.22.3; from 2.8.0 before 2.18.11
- tools.jackson.core:jackson-core (Maven): from 3.0.0 before 3.1.7; from 3.2.0 before 3.2.3

## Every score

- HeroDevs: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/FasterXML/jackson-core/security/advisories/GHSA-7hhh-6rmp-j9qf> (exploit, vendor-advisory, web)
- <https://github.com/FasterXML/jackson-core/pull/1698> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-89425> (advisory)
- <https://github.com/FasterXML/jackson-core/commit/211cf2c5d91abbec38067f37efc1363cd4e88ee3> (web)
- <https://github.com/FasterXML/jackson-core> (package)
- <https://github.com/FasterXML/jackson-core/releases/tag/jackson-core-2.18.11> (web)
- <https://github.com/FasterXML/jackson-core/releases/tag/jackson-core-3.2.3> (web)

## Sources

- CVE List: [CVE-2026-89425](https://www.cve.org/CVERecord?id=CVE-2026-89425), CVE Terms of Use, modified 2026-09-23
- GitHub Advisory Database: [GHSA-7hhh-6rmp-j9qf](https://github.com/advisories/GHSA-7hhh-6rmp-j9qf), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-89425](https://nvd.nist.gov/vuln/detail/CVE-2026-89425), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-89425 · Whole record: https://cve.day/CVE-2026-89425.json · Rebuilt by cve.day 2026-11-25T22:59:40.571Z
