{"id":"CVE-2026-59990","aliases":["CVE-2026-59990","GHSA-cc4v-rvgp-2pf3"],"related":[],"kind":"vulnerability","state":"published","title":"Jawn: Uncontrolled nesting depth in JSON parser","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"The Jawn parser before 1.6.1 is vulnerable to a denial of service attack via untrusted input.\n\n### Impact\n\nA 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`.\n\n### Patches\n\nVersion `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.\n\nUsers who require deeper nesting may override `maxDepth` on a `Parser` subclass.\n\n### Workarounds\n\n- Enforce an input size limit small enough that the resulting context stack cannot exhaust heap, (e.g. http4s `EntityLimiter`).\n- Pre-scan untrusted input and reject documents whose maximum delimiter nesting exceeds a threshold before handing them to jawn.","format":"markdown","source":"ghsa"}],"published":"2026-09-23T18:41:12.073Z","modified":"2026-09-30T17:32:07.107Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 1.7.0","status":"affected"}],"vendor":"typelevel","product":"jawn","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.0"}],"ecosystem":"Maven","package":"org.typelevel:jawn-parser_2.12","purl":"pkg:maven/org.typelevel/jawn-parser_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.0"}],"ecosystem":"Maven","package":"org.typelevel:jawn-parser_2.13","purl":"pkg:maven/org.typelevel/jawn-parser_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.7.0"}],"ecosystem":"Maven","package":"org.typelevel:jawn-parser_3","purl":"pkg:maven/org.typelevel/jawn-parser_3","source":"ghsa"}],"references":[{"url":"https://github.com/typelevel/jawn/security/advisories/GHSA-cc4v-rvgp-2pf3","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/jawn/commit/191cb3a44e77f1afab439ee636bf66bdf3c54a04","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/jawn/commit/6219666641f9408498f85868f835e17bd8a72fed","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/jawn/commit/93ac93e9c992c11b4c03d5455d8551f9fb24da1b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/jawn/commit/f6ace7e0db715de1a8c4618bed9378333a5c2214","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/jawn/releases/tag/v1.7.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/typelevel/jawn","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-23T19:27:50.740Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59990","url":"https://www.cve.org/CVERecord?id=CVE-2026-59990","licence":"CVE Terms of Use","modified":"2026-09-23T19:27:58.498Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cc4v-rvgp-2pf3","url":"https://github.com/advisories/GHSA-cc4v-rvgp-2pf3","licence":"CC-BY-4.0","modified":"2026-09-23T21:30:04.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59990","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59990","licence":"Public domain","modified":"2026-09-30T17:32:07.107Z"}],"updatedAt":"2026-11-25T22:59:40.655Z","epss":{"score":0.00615,"percentile":0.5081,"date":"2026-12-01T12:00:22.000Z"}}