GHSA-cc4v-rvgp-2pf3: High severity maven/org.typelevel:jawn-parser_3 vulnerability

Published Sep 23, 2026
·
Updated

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.

Affected Software

2 affected componentsFixes available
maven/org.typelevel:jawn-parser_3<=1.6.0
1.7.0
maven/org.typelevel:jawn-parser_2.13<=1.6.0
1.7.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.typelevel:jawn-parser_3 to a version that resolves this vulnerability.

    Fixed in 1.7.0
  2. Upgrade

    Upgrade maven/org.typelevel:jawn-parser_2.13 to a version that resolves this vulnerability.

    Fixed in 1.7.0
  3. Upgrade

    Upgrade maven/org.typelevel:jawn-parser_2.12 to a version that resolves this vulnerability.

    Fixed in 1.7.0
  4. Upgrade

    Upgrade Jawn parser to a version that resolves this vulnerability.

    Fixed in 1.6.1
  5. Compensating control

    Enforce an input size limit small enough that the resulting context stack cannot exhaust the JVM heap.

  6. Compensating control

    Pre-scan untrusted JSON input and reject documents whose maximum delimiter nesting exceeds a defined threshold before passing them to Jawn.

Event History

Sep 23, 2026
Advisory Published
via GitHub·09:23 PM
Data Sourced
via GitHub·09:23 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this denial-of-service issue?

Any application using a vulnerable Jawn parser that accepts JSON from remote or otherwise untrusted sources through a Jawn-backed parse method is exposed. An attacker does not need credentials or user interaction if they can submit that JSON.

2

Are default settings protected after upgrading?

Yes. Version 1.6.1 adds Parser#maxDepth with a default nesting-depth limit of 4096. Documents exceeding that depth fail with a recoverable ParseException rather than exhausting JVM heap.

3

What can be done before upgrading?

Apply an input size limit low enough to prevent the parser's context stack from exhausting heap, such as http4s EntityLimiter. Alternatively, pre-scan untrusted JSON and reject documents whose delimiter nesting exceeds a chosen threshold before passing them to Jawn.

4

Why might existing error handling not prevent service failure?

The vulnerable behavior can cause java.lang.OutOfMemoryError. Scala treats this as fatal, so it is not typically handled by scala.util.Try or cats.effect.IO.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203