GitHub Advisoryadvisory · Maven

GHSA-w4cm-gvhj-cgw6 Jawn: Quadratic parsing effort in AsyncParser

HIGH Published 2026-09-23 Modified 2026-09-23 Official page ↗
Aliases
CVE-2026-61814
Ecosystem
Maven
Packages
org.typelevel:jawn-parser_2.12, org.typelevel:jawn-parser_2.13, org.typelevel:jawn-parser_3
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-400, CWE-407
Reviewed
2026-09-23

Affected packages

• Maven org.typelevel:jawn-parser_2.12: < 1.7.0 → fixed in 1.7.0 • Maven org.typelevel:jawn-parser_2.13: < 1.7.0 → fixed in 1.7.0 • Maven org.typelevel:jawn-parser_3: < 1.7.0 → fixed in 1.7.0

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`

Related

Alias · CVE (1)

Weakness · CWE (2)

  • CWE-400 Uncontrolled Resource Consumption weakness
  • CWE-407 Inefficient Algorithmic Complexity weakness

References