Allocation of Resources Without Limits or Throttling Affecting org.typelevel:jawn-parser_2.13 package, versions [,1.7.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.62% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGTYPELEVEL-20079491
  • published24 Sept 2026
  • disclosed23 Sept 2026
  • creditUnknown

Introduced: 23 Sep 2026

NewCVE-2026-59990  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade org.typelevel:jawn-parser_2.13 to version 1.7.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the Parser and AsyncParser recursive JSON parsing paths in parser/shared/src/main/scala/jawn/Parser.scala and parser/shared/src/main/scala/jawn/AsyncParser.scala. An attacker can exhaust JVM heap and trigger java.lang.OutOfMemoryError by supplying JSON with deeply nested arrays or objects to any jawn-backed parse method. The vulnerable code recurses through nested containers without a nesting-depth limit, so a remote request carrying adversarial JSON can drive unbounded stack/list growth during parse. In Scala this failure is typically fatal and can crash the service or abort request handling rather than returning a recoverable parse error.

Workarounds

  • Enforce an input size limit small enough that the resulting context stack cannot exhaust heap, such as http4s EntityLimiter, to reduce the chance that deeply nested JSON can drive JVM heap exhaustion.
  • Pre-scan untrusted input and reject documents whose maximum delimiter nesting exceeds a threshold before handing them to jawn, to block adversarially deep arrays or objects from reaching the parser.

CVSS Base Scores

version 4.0
version 3.1