7.5high
Jawn: Quadratic parsing effort in AsyncParser
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.56% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w4cm-gvhj-cgw6
Description
Jawn is an open source JSON parser. Prior to 1.7.0, Jawn's AsyncParser can perform quadratic work when a single JSON token is delivered across many small chunks because each absorb call rescans the incomplete token from the start. A remote attacker who controls untrusted JSON input and its chunk sizes can exhaust CPU resources and cause denial of service in applications using AsyncParser. This issue is fixed in version 1.7.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| typelevel jawn | < 1.7.0 | CVE List |
| org.typelevel jawn-parser_2.12 | < 1.7.0 | CVE List |
| org.typelevel jawn-parser_2.13 | < 1.7.0 | CVE List |
| org.typelevel jawn-parser_3 | < 1.7.0 | CVE List |
| org.typelevel:jawn-parser_2.12 (Maven) | before 1.7.0 | GitHub Advisory Database |
| org.typelevel:jawn-parser_2.13 (Maven) | before 1.7.0 | GitHub Advisory Database |
| org.typelevel:jawn-parser_3 (Maven) | before 1.7.0 | GitHub Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Jawn is an open source JSON parser. Prior to 1.7.0, Jawn's AsyncParser can perform quadratic work when a single JSON token is delivered across many small chunks because each absorb call rescans the incomplete token from the start. A remote attacker who controls untrusted JSON input and its chunk sizes can exhaust CPU resources and cause denial of service in applications using AsyncParser. This issue is fixed in version 1.7.0.
GitHub Advisory Database
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
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-61814 changed 2026-09-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w4cm-gvhj-cgw6 changed 2026-09-23 | CC-BY-4.0 |
| NVD | CVE-2026-61814 changed 2026-09-30 | Public domain |