GHSA-cc4v-rvgp-2pf3

Suggest an improvement
Source
https://github.com/advisories/GHSA-cc4v-rvgp-2pf3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-cc4v-rvgp-2pf3/GHSA-cc4v-rvgp-2pf3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cc4v-rvgp-2pf3
Aliases
Published
2026-09-23T21:23:54Z
Modified
2026-09-23T21:30:04Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Jawn: Uncontrolled nesting depth in JSON parser
Details

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.
Database specific
{
    "cwe_ids":  [
        "CWE-770"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-09-23T21:23:54Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

Maven / org.typelevel:jawn-parser_2.12

Package

Name
org.typelevel:jawn-parser_2.12
View open source insights on deps.dev
Purl
pkg:maven/org.typelevel/jawn-parser_2.12

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.7.0

Affected versions

0.*
0.14.0
0.14.1
0.14.2
0.14.3
1.*
1.0.0-RC1
1.0.0-RC2
1.0.0-RC3
1.0.0-RC4
1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.1.1
1.1.2
1.2.0
1.3.0
1.3.1
1.3.2
1.4.0
1.5.0
1.5.1
1.6.0

Database specific

last_known_affected_version_range
"<= 1.6.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-cc4v-rvgp-2pf3/GHSA-cc4v-rvgp-2pf3.json"

Maven / org.typelevel:jawn-parser_2.13

Package

Name
org.typelevel:jawn-parser_2.13
View open source insights on deps.dev
Purl
pkg:maven/org.typelevel/jawn-parser_2.13

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.7.0

Affected versions

0.*
0.14.2
0.14.3
1.*
1.0.0-RC1
1.0.0-RC2
1.0.0-RC3
1.0.0-RC4
1.0.0
1.0.1
1.0.2
1.0.3
1.1.0
1.1.1
1.1.2
1.2.0
1.3.0
1.3.1
1.3.2
1.4.0
1.5.0
1.5.1
1.6.0

Database specific

last_known_affected_version_range
"<= 1.6.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-cc4v-rvgp-2pf3/GHSA-cc4v-rvgp-2pf3.json"

Maven / org.typelevel:jawn-parser_3

Package

Name
org.typelevel:jawn-parser_3
View open source insights on deps.dev
Purl
pkg:maven/org.typelevel/jawn-parser_3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.7.0

Affected versions

1.*
1.1.2
1.2.0
1.3.0
1.3.1
1.3.2
1.4.0
1.5.0
1.5.1
1.6.0

Database specific

last_known_affected_version_range
"<= 1.6.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-cc4v-rvgp-2pf3/GHSA-cc4v-rvgp-2pf3.json"