# GHSA-W4CM-GVHJ-CGW6: Jawn: Quadratic parsing effort in AsyncParser

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-09-23
- Modified: 2026-09-23

## Tracked as

- [CVE-2026-61814](https://cve.now/CVE-2026-61814.md): Jawn: Quadratic parsing effort in AsyncParser

## Affected versions

- org.typelevel:jawn-parser\_2.12 (Maven): fixed in 1.7.0
- org.typelevel:jawn-parser\_2.13 (Maven): fixed in 1.7.0
- org.typelevel:jawn-parser\_3 (Maven): 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`

## References

- https://github.com/typelevel/jawn/security/advisories/GHSA-w4cm-gvhj-cgw6
- https://github.com/typelevel/jawn/commit/cddcd5e3387c356b05953f7b2af103d309687e4b
- https://github.com/typelevel/jawn
- https://github.com/typelevel/jawn/releases/tag/v1.7.0

Page: https://cve.now/GHSA-W4CM-GVHJ-CGW6

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
