CVE-2026-61814: Jawn: Quadratic parsing effort in AsyncParser
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.
Published Sep 23, 2026
Affected packages
org.typelevel:jawn-parser_2.12
- Ecosystem
- Maven
- Affected
- <= 1.6.0
- Fixed in
- 1.7.0
- Check
mvn dependency:tree -Dincludes=org.typelevel:jawn-parser_2.12
org.typelevel:jawn-parser_2.13
- Ecosystem
- Maven
- Affected
- <= 1.6.0
- Fixed in
- 1.7.0
- Check
mvn dependency:tree -Dincludes=org.typelevel:jawn-parser_2.13
org.typelevel:jawn-parser_3
- Ecosystem
- Maven
- Affected
- <= 1.6.0
- Fixed in
- 1.7.0
- Check
mvn dependency:tree -Dincludes=org.typelevel:jawn-parser_3
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
Credited to rossabaker, samspills.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
