npmWorst: Critical12 advisories

js-yaml: known vulnerabilities

js-yaml has 12 reviewed security advisories in the GitHub Advisory Database — 1 critical, 5 high, 6 moderate. The most recent was published 2026-09-29. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the js-yaml versions running across your servers, containers and images, and ranks what to patch first.

How to fix js-yaml

Upgrade js-yaml to a release at or above the fixed version shown for each advisory below. For npm:

npm install js-yaml@5.4.1 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (12)

js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources Moderate 5.3 CWE-400 CWE-407 — Affected: from 5.0.0 up to 5.4.1. Fixed in 5.4.1. Published 2026-09-29. GHSA-r3ph-w7gj-g6xm
js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources High 7.5 CWE-400 CWE-407 — Affected: from 3.0.0 up to 3.15.2. Fixed in 3.15.2. Published 2026-09-01. GHSA-2883-xcg3-v3hh · CVE-2026-84375
JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported High 7.5 CWE-407 — Affected: from 3.0.0 up to 3.15.1. Fixed in 3.15.1. Published 2026-08-06. GHSA-5p4m-2wfm-xmqj
js-yaml: Exponential parsing time in flow collections leads to denial of service High 7.5 CWE-407 — Affected: from 5.0.0 up to 5.2.2. Fixed in 5.2.2. Published 2026-07-24. GHSA-pm4m-ph32-ghv5 · CVE-2026-73643
js-yaml: YAML merge-key chains can force quadratic CPU consumption High 7.5 CWE-400 CWE-407 — Affected: from 4.0.0 up to 4.3.0. Fixed in 4.3.0. Published 2026-07-08. GHSA-52cp-r559-cp3m · CVE-2026-59869
js-yaml: Quadratic-complexity (O(n^2)) DoS via !!omap tag in YAML11_SCHEMA Moderate 5.3 CWE-407 CWE-770 — Affected: from 5.0.0 up to 5.2.1. Fixed in 5.2.1. Published 2026-07-08. GHSA-724g-mxrg-4qvm · CVE-2026-59870
js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yaml Moderate 5.3 CWE-400 CWE-407 CWE-770 — Affected: from 5.0.0 up to 5.2.0. Fixed in 5.2.0. Published 2026-07-08. GHSA-g796-fgmg-93mv · CVE-2026-59868
JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases Moderate 5.3 CWE-407 — Affected: before 3.15.0. Fixed in 3.15.0. Published 2026-06-22. GHSA-h67p-54hq-rp68 · CVE-2026-53550
js-yaml has prototype pollution in merge (<<) Moderate 5.3 CWE-1321 — Affected: before 3.14.2. Fixed in 3.14.2. Published 2025-11-13. GHSA-mh29-5h37-fv8m · CVE-2025-64718
Denial of Service in js-yaml Moderate 5.9 CWE-400 — Affected: before 3.13.0. Fixed in 3.13.0. Published 2019-06-05. GHSA-2pr6-76vf-7546
Code Injection in js-yaml High CWE-94 — Affected: before 3.13.1. Fixed in 3.13.1. Published 2019-06-04. GHSA-8j8c-7jfh-h6hx
Deserialization Code Execution in js-yaml Critical CWE-20 — Affected: before 2.0.5. Fixed in 2.0.5. Published 2017-10-24. GHSA-xxvw-45rp-3mj2 · CVE-2013-4660

Find js-yaml across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.