Inefficient Algorithmic Complexity Affecting js-yaml package, versions >=3.0.0 <3.15.1>=4.0.0 <4.3.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-JS-JSYAML-18593780
  • published8 Aug 2026
  • disclosed6 Aug 2026
  • credit0xsharz

Introduced: 6 Aug 2026

New CVE NOT AVAILABLE CWE-407  (opens in a new tab)

How to fix?

Upgrade js-yaml to version 3.15.1, 4.3.1 or higher.

Overview

js-yaml is a human-friendly data serialization language.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity through the yaml.load process. An attacker can cause excessive CPU consumption and block the event loop by providing a specially crafted YAML document containing a large !!omap sequence.

References

CVSS Base Scores

version 4.0
version 3.1