HighGHSA-3mc7-4q67-w48mCVE-2022-25857

Uncontrolled Resource Consumption in snakeyaml

Published 31 Aug 2022 · Updated 10 Sept 2026

Is your project on an affected org.yaml:snakeyaml?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.31
Fixed in
1.31
Update to the fixed version for your release line, for example:mvn versions:use-dep-version -Dincludes=org.yaml:snakeyaml -DdepVersion=1.31 -DforceVersion=true

Details

The package org.yaml:snakeyaml from 0 and before 1.31 are vulnerable to Denial of Service (DoS) due missing to nested depth limitation for collections.

Is GHSA-3mc7-4q67-w48m in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.yaml:snakeyaml, and gives you the command that fixes it.

More advisories for org.yaml:snakeyaml

  • HighCVE-2022-1471SnakeYaml Constructor Deserialization Remote Code Execution · 12 Dec 2022
  • MediumCVE-2022-41854Snakeyaml vulnerable to Stack overflow leading to denial of service · 11 Nov 2022
  • MediumCVE-2022-38751snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
  • MediumCVE-2022-38752snakeYAML before 1.32 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
  • MediumCVE-2022-38749snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
  • MediumCVE-2022-38750snakeYAML before 1.31 vulnerable to Denial of Service due to Out-of-bounds Write · 6 Sept 2022
All 8 advisories for org.yaml:snakeyaml

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.