Denial of Service (DoS) Affecting org.typelevel:jawn-parser_2.12 package, versions [,1.3.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (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 Denial of Service (DoS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGTYPELEVEL-2331744
  • published7 Jan 2022
  • disclosed6 Jan 2022
  • creditUnknown

Introduced: 6 Jan 2022

CVE-2022-21653  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS). Extenders of the org.typelevel.jawn.SimpleFacade and org.typelevel.jawn.MutableFacade who don't override objectContext() are vulnerable to a hash collision attack. Most applications do not implement these traits directly, but inherit from a library.

For users unable to upgrade, override objectContext() to use a collision-safe collection.

Note - Unaffected implementations include: io.argonaut:argonaut-jawn io.circe:circe-parser org.typelevel:jawn-ast (>= 0.8.0) org.typelevel:jawn-json4s (discontinued) org.typelevel:jawn-argonaut (discontinued)

References

CVSS Scores

version 3.1