Allocation of Resources Without Limits or Throttling Affecting js-yaml package, versions >=3.0.0 <3.15.2>=4.0.0 <4.3.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.39% (32nd 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 Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-JSYAML-19496768
  • published2 Sept 2026
  • disclosed2 Sept 2026
  • creditUnknown

Introduced: 2 Sep 2026

NewCVE-2026-84375  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade js-yaml to version 3.15.2, 4.3.2 or higher.

Overview

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

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the merge key (<<) handling of the loader, where the maxTotalMergeKeys budget does not count empty mappings against its limit. An attacker can consume significant CPU, on the order of O(N*K) for N empty mappings merged K times, with a relatively small document by repeatedly merging a large sequence of empty mappings so the budget counter never increments.

Note: This requires YAML merge processing to be enabled for untrusted YAML, which is the default behavior in versions 3 and 4, but is not the default in version 5.

CVSS Base Scores

version 4.0
version 3.1