# js-yaml (npm)

YAML 1.2 parser and serializer

- Latest: 5.5.0 (2026-10-15)
- Licence: MIT
- Downloads: 1720213716 last month
- Advisories on the latest version: 0

- GHSA-r3ph-w7gj-g6xm MODERATE: js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources Fixed in 5.4.1.
- CVE-2026-84375 HIGH: js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources Fixed in 4.3.2, 3.15.2.
- GHSA-5p4m-2wfm-xmqj HIGH: JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported Fixed in 4.3.1, 3.15.1.
- CVE-2026-73643 HIGH: js-yaml: Exponential parsing time in flow collections leads to denial of service Fixed in 5.2.2.
- CVE-2026-59869 HIGH: js-yaml: YAML merge-key chains can force quadratic CPU consumption Fixed in 3.15.0, 4.3.0.
- CVE-2026-59870 MODERATE: js-yaml: Quadratic-complexity (O(n^2)) DoS via !!omap tag in YAML11_SCHEMA Fixed in 5.2.1.
- CVE-2026-59868 MODERATE: js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yaml Fixed in 5.2.0.
- CVE-2026-53550 MODERATE: JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases Fixed in 4.2.0, 3.15.0.
- CVE-2025-64718 MODERATE: js-yaml has prototype pollution in merge (<<) Fixed in 4.1.1, 3.14.2.
- GHSA-2pr6-76vf-7546 MODERATE: Denial of Service in js-yaml Fixed in 3.13.0.
- GHSA-8j8c-7jfh-h6hx HIGH: Code Injection in js-yaml Fixed in 3.13.1.
- CVE-2013-4660 CRITICAL: Deserialization Code Execution in js-yaml Fixed in 2.0.5.

Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.
