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.
npm install js-yaml@5.5.0Is your project on an affected js-yaml?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for js-yaml
js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources
- Affected
- >=5.0.0 <5.4.1
- Fixed in
- 5.4.1
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
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
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
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
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
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
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
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
Denial of Service in js-yaml
- Affected
- <3.13.0
- Fixed in
- 3.13.0
Code Injection in js-yaml
- Affected
- <3.13.1
- Fixed in
- 3.13.1
Deserialization Code Execution in js-yaml
- Affected
- <2.0.5
- Fixed in
- 2.0.5
Is your js-yaml version vulnerable?
- js-yaml 5.5No known advisories in 5.5.0
- js-yaml 5.4No known advisories in 5.4.3
- js-yaml 5.31 advisory in 5.3.0
- js-yaml 5.21 advisory in 5.2.3
- js-yaml 5.14 advisories in 5.1.0
- js-yaml 5.04 advisories in 5.0.0
- js-yaml 4.3No known advisories in 4.3.2
- js-yaml 4.23 advisories in 4.2.0
- js-yaml 4.14 advisories in 4.1.1
- js-yaml 4.05 advisories in 4.0.0
- js-yaml 3.15No known advisories in 3.15.2
- js-yaml 3.144 advisories in 3.14.2
- js-yaml 3.135 advisories in 3.13.1
- js-yaml 3.127 advisories in 3.12.2
- js-yaml 3.117 advisories in 3.11.0
- js-yaml 3.107 advisories in 3.10.0
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.