Jawn: Uncontrolled nesting depth in JSON parser
typelevel jawn
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.typelevel:jawn-parser_2.12 Maven |
|
|
| org.typelevel:jawn-parser_2.13 Maven |
|
|
| org.typelevel:jawn-parser_3 |
typelevel jawn
| Product | Affected | Fixed in |
|---|---|---|
| org.typelevel:jawn-parser_2.12 Maven |
|
|
| org.typelevel:jawn-parser_2.13 Maven |
|
|
| org.typelevel:jawn-parser_3 |
|
|
Jawn is an open source JSON parser. Prior to 1.7.0, Jawn parse methods accept arbitrarily deep JSON array and object nesting without a depth limit, allowing a remote attacker who can submit untrusted JSON to grow parser contexts until the JVM heap is exhausted. The resulting java.lang.OutOfMemoryError is a fatal Scala error that is not ordinarily handled by scala.util.Try or cats.effect.IO, causing denial of service. This issue is fixed in version 1.7.0.
From the CVE record · GitHub_M
Before version 1.7.0, Jawn parse methods do not limit JSON nesting depth. A remote attacker who can submit untrusted JSON can exhaust the JVM heap, causing an OutOfMemoryError and denial of service; no authentication or user interaction requirement is specified.
Engineers using Maven packages org.typelevel:jawn-parser_2.12, org.typelevel:jawn-parser_2.13, or org.typelevel:jawn-parser_3 at versions earlier than 1.7.0 should check their deployments.