CVE-2026-18401
jackson-core: Number length constraint bypass in non-blocking (async) JSON parser leads to potential denial of service
Also known as GHSA-72hv-8253-57qq
Mitigation
- Upgrade tools.jackson.core:jackson-core to 3.1.0 or later.
- Upgrade com.fasterxml.jackson.core:jackson-core to one of 2.21.1, 2.18.6 (or later in the same release line).
Who should check
- Projects that depend on Maven package tools.jackson.core:jackson-core (>= 3.0.0, < 3.1.0)
- Projects that depend on Maven package com.fasterxml.jackson.core:jackson-core (>= 2.19.0, < 2.21.1)
- Anyone running FasterXML jackson-core >= 2.15.0, <= 2.18.5; >= 2.19.0, < 2.21.1
- Anyone running FasterXML jackson-core >= 3.0.0, < 3.1.0
Vulnerability facts
- Affected
- tools.jackson.core:jackson-core >= 3.0.0, < 3.1.0; com.fasterxml.jackson.core:jackson-core >= 2.19.0, < 2.21.1
- Fixed in
- 3.1.0, 2.21.1, 2.18.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.54% chance of exploitation in 30 days (percentile 39, 2026-11-26)
- CWE
- CWE-770
- Modified
Description
The non-blocking (asynchronous) JSON parser in jackson-core does not enforce the maxNumberLength constraint defined in StreamReadConstraints (default: 1000 characters). An attacker able to submit JSON to an application that uses the async parser API can supply a number token of arbitrary length, leading to excessive memory allocation and potential CPU exhaustion, resulting in a denial of service. The synchronous parser enforces this limit correctly, so the constraint is applied inconsistently depending on which parsing API the application uses. Root cause: the async parsing path in NonBlockingUtf8JsonParserBase and related classes never invokes the number length validation methods. Number parsing methods such as _finishNumberIntegralPart() accumulate digits into the TextBuffer without any length check, then call _valueComplete() to finalize the token. _valueComplete() does not call resetInt() or resetFloat(), which are the methods in ParserBase where validateIntegerLength() and validateFPLength() are performed. Because that validation step is skipped, maxNumberLength is never enforced on the async code path. Impact: an attacker sending a JSON document containing an arbitrarily long number to an application using the async parser (for example a Spring WebFlux or other reactive application) can cause unbounded allocation in the TextBuffer and an OutOfMemoryError. If the application subsequently calls getBigIntegerValue() or getDecimalValue(), the JVM may additionally be tied up in O(n^2) BigInteger parsing, causing CPU-based denial of service. No privileges or user interaction beyond the ability to submit data for parsing are required. This issue affects com.fasterxml.jackson.core:jackson-core from version 2.15.0 through 2.18.5 and from 2.19.0 through 2.21.0, and tools.jackson.core:jackson-core from 3.0.0 through 3.0.x. Versions prior to 2.15.0 are not affected, because StreamReadConstraints -- which defines the maxNumberLength setting -- was first introduced in jackson-core 2.15.0, so no such constraint exists to be bypassed in earlier releases. Note that GHSA-72hv-8253-57qq records the lower bound of the affected 2.x range as 2.0.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven tools.jackson.core:jackson-core | >= 3.0.0, < 3.1.0 | 3.1.0 | osv |
| Maven com.fasterxml.jackson.core:jackson-core | >= 2.19.0, < 2.21.1 | 2.21.1, 2.18.6 | osv |
| FasterXML jackson-core | >= 2.15.0, <= 2.18.5; >= 2.19.0, < 2.21.1 | — | cvelist |
| FasterXML jackson-core | >= 3.0.0, < 3.1.0 | — | 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-18401. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-18401.md Affected: tools.jackson.core:jackson-core >= 3.0.0, < 3.1.0; com.fasterxml.jackson.core:jackson-core >= 2.19.0, < 2.21.1 Fixed in: 3.1.0, 2.21.1, 2.18.6 Steps: 1. Search this machine and project for tools.jackson.core:jackson-core (Maven), com.fasterxml.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
Vendor advisories
Patches
FAQ
Is CVE-2026-18401 being exploited?
There is no confirmed exploitation: CVE-2026-18401 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-18401?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-18401?
tools.jackson.core:jackson-core >= 3.0.0, < 3.1.0; com.fasterxml.jackson.core:jackson-core >= 2.19.0, < 2.21.1.
Is there a fix for CVE-2026-18401?
Yes. Fixed in 3.1.0, 2.21.1, 2.18.6. Upgrade tools.jackson.core:jackson-core to 3.1.0 or later. Upgrade com.fasterxml.jackson.core:jackson-core to one of 2.21.1, 2.18.6 (or later in the same release line).
How do I check if I'm affected by CVE-2026-18401?
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.