CVE-2026-137408: Maven/org.eclipse/yasson vulnerability
In Eclipse Yasson versions 1.0 through 1.0.11, 2.0 through 2.0.4, and 3.0 through 3.0.6, the deserializers for BigInteger, BigDecimal, Number and untyped targets (Object, Map<String,Object>) take the raw JSON number token as a string and pass it to new BigDecimal(String) / new BigInteger(String) without any length limit. These constructors have quadratic cost in the number of digits, so a single JSON number or quoted digit string of a few hundred KB to 1 MB can occupy a thread for several seconds to about 10 seconds. The number-length limit that Parsson added for CVE-2023-4043 (default 1100 characters) is enforced only in JsonParser.getBigDecimal(), which Yasson does not call on these paths, so it does not mitigate the issue. A remote, unauthenticated attacker who can send JSON to an application that binds it to one of these types without prior validation can cause denial of service through CPU exhaustion. This issue is fixed in 1.0.12, 2.0.5, and 3.0.7 versions by introducing a default maximum length of 1,100 characters for BigInteger/BigDecimal and scale of 100,000 for BigDecimal. These defaults are configurable via JsonbConfig properties or system properties, yasson.max-big-number-length and yasson.max-big-number-scale respectively.
Yasson 2.0.X and 1.0.X artifacts where previously published to the org.eclipse group id. The 2.0.5 and 1.0.12 artifacts have been published to the currently used org.eclipse.yasson group id.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.0.12 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.0.5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.0.7
Event History
Frequently Asked Questions
Which application endpoints are exposed?
Endpoints that accept attacker-controlled JSON and bind numeric values to BigInteger, BigDecimal, Number, Object, or Map<String,Object> are exposed if they do not validate the input before Yasson deserializes it. Exploitation is remote and does not require authentication when such an endpoint is reachable anonymously.
Does Parsson's default JSON number limit protect affected applications?
No. The Parsson limit is enforced through JsonParser.getBigDecimal(), but the affected Yasson deserialization paths do not call that method.
What versions resolve the issue?
The issue is fixed in Yasson 1.0.12, 2.0.5, and 3.0.7. These releases introduce default limits of 1,100 characters for BigInteger and BigDecimal values and a BigDecimal scale limit of 100,000.
What can be done before upgrading?
Validate and reject oversized JSON number tokens or quoted digit strings before they reach Yasson deserialization, especially for fields bound to the affected target types. The limits introduced in fixed releases are configurable through JsonbConfig properties or system properties.