HIGH 7.5

CVE-2026-61814

Jawn: Quadratic parsing effort in AsyncParser

Description

AsyncParser can be forced to perform O(n^2) work on the length of the input. When a single JSON token arrives across many small chunks, each absorb call rescans the incomplete token from the start.

Impact

Denial of service via CPU exhaustion when parsing untrusted JSON.

Preconditions:

  • Application uses AsyncParser
  • Attacker can send large tokens with control over chunk sizes.

Patches

Fixed in jawn-parser-1.7.0.

Workarounds

If you can't upgrade immediately:

  • Use the synchronous Parser.
  • Buffer incoming bytes into larger chunks before calling absorb

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.typelevel » jawn-parser_2.12
< 1.7.0
1.7.0
org.typelevel » jawn-parser_2.13
< 1.7.0
1.7.0
org.typelevel » jawn-parser_3
< 1.7.0
1.7.0

Blast radius

1affected artifacts
23affected versions
3,830dependent artifacts (est.)
168,977dependent versions

81% of the dependent artifacts (3,120) still pull an affected version in their latest release.

DepthDependent versions
Direct
1,576
2 hops
11,692
3 hops
58,480
4 hops
56,699
5 hops
29,742
6 hops
10,788

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.