NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-59990: Jawn: Uncontrolled nesting depth in JSON parser

highCVSS 3.1 7.5GHSA-cc4v-rvgp-2pf3

The Jawn parser before 1.6.1 is vulnerable to a denial of service attack via untrusted input. Impact A remote attacker who can submit JSON to any jawn-backed parse method can exhaust JVM heap and trigger java.lang.OutOfMemoryError. This is treated by Scala as a fatal error and not typically handled by scala.util.Try or cats.effect.IO.

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).

The Jawn parser before 1.6.1 is vulnerable to a denial of service attack via untrusted input.

Impact

A remote attacker who can submit JSON to any jawn-backed parse method can exhaust JVM heap and trigger java.lang.OutOfMemoryError. This is treated by Scala as a fatal error and not typically handled by scala.util.Try or cats.effect.IO.

Patches

Version 1.6.1 introduces a configurable nesting-depth limit (Parser#maxDepth, default 4096). Inputs deeper than the limit fail with a recoverable ParseException instead of exhausting heap.

Users who require deeper nesting may override maxDepth on a Parser subclass.

Workarounds

  • Enforce an input size limit small enough that the resulting context stack cannot exhaust heap, (e.g. http4s EntityLimiter).
  • Pre-scan untrusted input and reject documents whose maximum delimiter nesting exceeds a threshold before handing them to jawn.

Credited to rossabaker, eed3si9n.

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

More Maven vulnerabilities

All Maven entries