Is js-yaml 5.1 vulnerable?

npm · 1 release from 5.1.0 to 5.1.0 · latest js-yaml is 5.5.0 · checked 1 Nov 2026

Yes: 4 known advisories

Yes. js-yaml 5.1.0, the last 5.1 release, is affected by 4 known security advisories (1 high, 3 medium), including CVE-2026-73643, CVE-2026-59868, CVE-2026-59870. Upgrade to 5.4.1 or later to fix all of them.

Upgrade with:npm install js-yaml@5.4.1

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting js-yaml 5.1.0

  • 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
  • HighCVE-2026-73643GHSA-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
  • MediumCVE-2026-59868GHSA-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
  • MediumCVE-2026-59870GHSA-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

Which of your client projects are still on js-yaml 5.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact js-yaml version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other js-yaml versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.