Intel

AIKIDO-2026-543038

js-yaml is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)GHSA-r3ph-w7gj-g6xm Published 3 days ago

53

Medium Risk

This Affects:

JSjs-yaml
5.0.0 - 5.4.0
Fixed in 5.4.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to Denial of Service (DoS) because the maxTotalMergeKeys safeguard does not account for empty mappings during merge processing. A crafted YAML document that repeatedly merges empty mappings performs a large number of iterations without ever incrementing the merge-key counter, so the configured limit is never reached. The fix counts each merge-source mapping toward maxTotalMergeKeys and hard-limits the size of merge sequences.

Who does this affect?

You are affected if your application uses an affected version to parse untrusted YAML input.

Background info

js-yaml is vulnerable to Denial of Service (DoS) in versions 5.0.0 - 5.4.0.

How to fix this

Upgrade the js-yaml library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform