{"id":"CVE-2026-89425","published":"2026-09-23T02:06:10Z","modified":"2026-09-23T14:00:42Z","title":"jackson-core: UTF8DataInputJsonParser._reportInvalidToken() does not honor maxErrorTokenLength, allowing unbounded…","vendor":"FasterXML","product":"jackson-core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00615,"percentile":0.50397,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/FasterXML/jackson-core/security/advisories/GHSA-7hhh-6rmp-j9qf","tags":["vendor-advisory"]},{"url":"https://github.com/FasterXML/jackson-core/pull/1698","tags":["patch"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":10.08},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"fasterxml","affectedVersions":[{"vendor":"FasterXML","product":"jackson-core","versions":[">= 2.8.0, <= 2.18.10",">= 2.19.0, <= 2.21.6",">= 2.22.0, <= 2.22.2"]},{"vendor":"FasterXML","product":"jackson-core","versions":[">= 3.0.0, <= 3.1.6",">= 3.2.0, <= 3.2.2"]}],"solutions":{"items":["Upgrade to com.fasterxml.jackson.core:jackson-core 2.18.11, 2.21.7 or 2.22.3, or to tools.jackson.core:jackson-core 3.1.7 or 3.2.3. The 2.8.x through 2.17.x, 2.19.x, 2.20.x and 3.0.x lines received no fix on their own branch and are no longer maintained upstream; consumers of those lines must move forward to a maintained release."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-23T13:54:51.050132Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.fasterxml.jackson.core:jackson-core","vulnerableRanges":[">=2.19.0, <2.21.7",">=2.22.0, <2.22.3",">=2.8.0, <2.18.11"],"patched":["2.21.7","2.22.3","2.18.11"],"from":["GHSA-7hhh-6rmp-j9qf"],"provenance":"source"},{"ecosystem":"Maven","package":"tools.jackson.core:jackson-core","vulnerableRanges":[">=3.0.0, <3.1.7",">=3.2.0, <3.2.3"],"patched":["3.1.7","3.2.3"],"from":["GHSA-7hhh-6rmp-j9qf"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-85000","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-fasterxml-jackson-core-cve-2021-22145","parents":[{"from":"CVE-2026-68494","to":"CVE-2026-89425","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:com.fasterxml.jackson.core:jackson-core","fromFixed":"2.21.4","toFixed":"2.21.7","daysApart":50},{"kind":"version-step","provenance":"source","package":"Maven:tools.jackson.core:jackson-core","fromFixed":"3.1.4","toFixed":"3.1.7","daysApart":50},{"kind":"same-code","provenance":"machine","files":["release-notes/VERSION-2.x","src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingUtf8JsonParserBase.java"],"commits":["https://github.com/FasterXML/jackson-core/commit/050b429804dce2a7e08f0be1b0b4c3d040fdb9cd","https://github.com/FasterXML/jackson-core/commit/4cdd529749da396cc7edf6d4a2aad41d47902641","https://github.com/FasterXML/jackson-core/commit/211cf2c5d91abbec38067f37efc1363cd4e88ee3"],"basis":"rarely changed file"}]},{"from":"CVE-2025-49128","to":"CVE-2026-89425","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["release-notes/VERSION-2.x","src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java","src/main/java/com/fasterxml/jackson/core/json/UTF8StreamJsonParser.java"],"commits":["https://github.com/FasterXML/jackson-core/commit/a6c297682737dde13337cb7c3020f299518609a8","https://github.com/FasterXML/jackson-core/commit/211cf2c5d91abbec38067f37efc1363cd4e88ee3"],"basis":"shared function","functions":["_reportInvalidToken"]}]},{"from":"CVE-2026-18401","to":"CVE-2026-89425","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["release-notes/VERSION-2.x","src/main/java/com/fasterxml/jackson/core/json/async/NonBlockingUtf8JsonParserBase.java"],"commits":["https://github.com/FasterXML/jackson-core/commit/b0c428e6f993e1b5ece5c1c3cb2523e887cd52cf","https://github.com/FasterXML/jackson-core/commit/211cf2c5d91abbec38067f37efc1363cd4e88ee3"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-29062","published":"2026-03-06","fixed":"3.1.0","kev":false},{"cve":"CVE-2026-68494","published":"2026-08-04","fixed":"3.1.4","kev":false},{"cve":"CVE-2026-89407","published":"2026-09-22","fixed":"3.2.2","kev":false,"link":{"from":"CVE-2026-89407","to":"CVE-2026-89425","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:tools.jackson.core:jackson-core","fromFixed":"3.2.2","toFixed":"3.2.3","daysApart":1},{"kind":"same-code","provenance":"machine","files":["release-notes/VERSION-2.x"],"commits":["https://github.com/FasterXML/jackson-core/commit/731e794f62623aa0d86ced52490166be903fbb1d","https://github.com/FasterXML/jackson-core/commit/e7acd64cc99bd346704423dc2bfea1ab0a08ddff","https://github.com/FasterXML/jackson-core/commit/211cf2c5d91abbec38067f37efc1363cd4e88ee3"],"basis":"shared file"}]}},{"cve":"CVE-2026-89425","published":"2026-09-23","fixed":"3.2.3","kev":false}],"package":"Maven:tools.jackson.core:jackson-core"}}