js-yaml vulnerabilities

YAML 1.2 parser and serializer

Registry
npm
Latest
5.5.0
License
MIT

12 known advisories

The latest version, 5.5.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install js-yaml@5.5.0

Security advisories for js-yaml

  • MediumGHSA-r3ph-w7gj-g6xm29 Sept 2026

    js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources

    Affected
    >=5.0.0 <5.4.1
    Fixed in
    5.4.1
  • HighGHSA-2883-xcg3-v3hh8 Sept 2026

    js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources

    Affected
    >=4.0.0 <4.3.2 · >=3.0.0 <3.15.2
    Fixed in
    3.15.2, 4.3.2
  • HighGHSA-5p4m-2wfm-xmqj6 Aug 2026

    JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported

    Affected
    >=4.0.0 <4.3.1 · >=3.0.0 <3.15.1
    Fixed in
    3.15.1, 4.3.1
  • HighGHSA-pm4m-ph32-ghv524 Jul 2026

    js-yaml: Exponential parsing time in flow collections leads to denial of service

    Affected
    >=5.0.0 <5.2.2
    Fixed in
    5.2.2
  • MediumGHSA-g796-fgmg-93mv20 Jul 2026

    js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yaml

    Affected
    >=5.0.0 <5.2.0
    Fixed in
    5.2.0
  • HighGHSA-52cp-r559-cp3m20 Jul 2026

    js-yaml: YAML merge-key chains can force quadratic CPU consumption

    Affected
    >=3.0.0 <3.15.0 · >=4.0.0 <4.3.0
    Fixed in
    3.15.0, 4.3.0
  • MediumGHSA-724g-mxrg-4qvm20 Jul 2026

    js-yaml: Quadratic-complexity (O(n^2)) DoS via !!omap tag in YAML11_SCHEMA

    Affected
    >=5.0.0 <5.2.1
    Fixed in
    5.2.1
  • MediumGHSA-h67p-54hq-rp6815 Jun 2026

    JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases

    Affected
    >=4.0.0 <4.2.0 · <3.15.0
    Fixed in
    3.15.0, 4.2.0
  • MediumGHSA-mh29-5h37-fv8m14 Nov 2025

    js-yaml has prototype pollution in merge (<<)

    Affected
    >=4.0.0 <4.1.1 · <3.14.2
    Fixed in
    3.14.2, 4.1.1
  • MediumGHSA-2pr6-76vf-75465 Jun 2019

    Denial of Service in js-yaml

    Affected
    <3.13.0
    Fixed in
    3.13.0
  • HighGHSA-8j8c-7jfh-h6hx4 Jun 2019

    Code Injection in js-yaml

    Affected
    <3.13.1
    Fixed in
    3.13.1
  • CriticalGHSA-xxvw-45rp-3mj224 Oct 2017

    Deserialization Code Execution in js-yaml

    Affected
    <2.0.5
    Fixed in
    2.0.5

Which of your client projects still run an old js-yaml?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.