Inefficient Algorithmic Complexity Affecting org.typelevel:jawn-parser_2.12 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.57% (45th 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 IDSNYK-JAVA-ORGTYPELEVEL-20074858
  • published24 Sept 2026
  • disclosed23 Sept 2026

Introduced: 23 Sep 2026

NewCVE-2026-61814  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in AsyncParser in parser/shared/src/main/scala/jawn/AsyncParser.scala. An attacker can exhaust CPU by sending untrusted JSON tokens split across many tiny chunks so each absorb call rescans the same incomplete token from the start. This causes parsing of large strings, escaped strings, or numbers to take O(n^2) work, slowing or stalling applications that use AsyncParser on attacker-controlled input.

Workarounds

  • Use the synchronous Parser instead of AsyncParser; this avoids the chunk-by-chunk asynchronous parse path that can be driven into repeated rescans and CPU exhaustion.
  • Buffer incoming bytes into larger chunks before calling absorb; this reduces the attacker’s ability to split a token across tiny inputs and trigger quadratic parsing work.

CVSS Base Scores

version 4.0
version 3.1