Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| typelevel | jawn | < 1.7.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jawn | No fix yet | — |
| Debian 13 | jawn | No fix yet | — |
| Debian 12 | jawn | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | jawn | No fix yet | — |
| Ubuntu 26.04 LTS | jawn | No fix yet | — |
| Ubuntu 24.04 LTS | jawn | No fix yet | — |
| Ubuntu 22.04 LTS | jawn | No fix yet | — |
| Ubuntu 20.04 LTS | jawn | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.typelevel:jawn-parser_2.12 | < 1.7.0 | 1.7.0 | GHSA-cc4v-rvgp-2pf3 |
| Maven | org.typelevel:jawn-parser_2.13 | < 1.7.0 | 1.7.0 | GHSA-cc4v-rvgp-2pf3 |
| Maven | org.typelevel:jawn-parser_3 | < 1.7.0 | 1.7.0 | GHSA-cc4v-rvgp-2pf3 |
References
- https://github.com/typelevel/jawn/security/advisories/GHSA-cc4v-rvgp-2pf3
- https://github.com/typelevel/jawn/commit/191cb3a44e77f1afab439ee636bf66bdf3c54a04
- https://github.com/typelevel/jawn/commit/6219666641f9408498f85868f835e17bd8a72fed
- https://github.com/typelevel/jawn/commit/93ac93e9c992c11b4c03d5455d8551f9fb24da1b
- https://github.com/typelevel/jawn/commit/f6ace7e0db715de1a8c4618bed9378333a5c2214
- https://github.com/typelevel/jawn/releases/tag/v1.7.0