CVE-2022-21653 is a medium-severity (CVSS 5.9) Uncontrolled Resource Consumption vulnerability in org.typelevel:jawn-parser_0.25. 1 public exploit reference exists, so weaponization risk is real. A fix is available for org.typelevel:jawn-parser_0.25 — see the affected versions and patch details below.
Hash collision in typelevel jawn
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
Exploitation and automatability from CISA’s SSVC triage for CVE-2022-21653.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2022-21653 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,987 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
org.typelevel:jawn-parser_0.25☕org.typelevel:jawn-parserg☕org.typelevel:jawn-parser_0.27☕org.typelevel:jawn-parser_2.10☕org.typelevel:jawn-parser_2.11☕org.typelevel:jawn-parser_2.12☕org.typelevel:jawn-parser_2.13☕org.typelevel:jawn-parser_2.13.0-M5+10 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
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:
Affected implementations include:
org.http4s::http4s-play-jsonorg.typelevel :: jawn-ast(< 0.8.0)org.typelevel :: jawn-play(discontinued)org.typelevel :: jawn-rojoma(discontinued)org.typelevel :: jawn-spray(discontinued)
Unaffected implementations include:
io.argonaut :: argonaut-jawnio.circe :: circe-parserorg.typelevel :: jawn-ast(>= 0.8.0)org.typelevel :: jawn-json4s(discontinued)org.typelevel :: jawn-argonaut(discontinued)
Patches
jawn-parser-1.3.2 fixes the issue.
Workarounds
Override objectContext() to use a collision-safe collection. See the patch for an example in both SimpleFacade and MutableFacade.
References
Credits
- @kag0, for the report and the patch
For more information
If you have any questions or comments about this advisory:
- Open an issue in typelevel/jawn
- E-mail a maintainer:
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.typelevel:jawn-parser_0.25 | all versions | No fix |
| ☕Maven | org.typelevel:jawn-parserg | all versions | No fix |
| ☕Maven | org.typelevel:jawn-parser_0.27 | all versions | No fix |
| ☕Maven | org.typelevel:jawn-parser_2.10 | all versions | No fix |
| ☕Maven | org.typelevel:jawn-parser_2.11 | all versions | No fix |
| ☕Maven | org.typelevel:jawn-parser_2.12 | all versions | 1.3.2org.typelevel:jawn-parser_2.12:1.3.2 |
Affected Products
jawntypelevelResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.typelevel:jawn-parser_0.25, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
No patched version of org.typelevel:jawn-parser_0.25 has shipped for CVE-2022-21653 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2022-21653 in your dependencies?
Find it across Maven, including transitive dependencies.