js-yaml
5.5.0 · 15 Oct 2026MIT322.7M / weekRepositoryHomepagenpmAtom feed
Upgrading js-yaml from 2.0.3 to 3.15.0
54 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- breaking3.1.0
Security
2 advisories still affect 3.15.0
- js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sourceshigh · GHSA-2883-xcg3-v3hh
- JS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backportedhigh · GHSA-5p4m-2wfm-xmqj
Upgrading to 3.15.2 clears them.
Fixes 5 advisories affecting 2.0.3
- js-yaml has prototype pollution in merge (<<)moderate · GHSA-mh29-5h37-fv8m
- Deserialization Code Execution in js-yamlcritical · GHSA-xxvw-45rp-3mj2
- Denial of Service in js-yamlmoderate · GHSA-2pr6-76vf-7546
- Code Injection in js-yamlhigh · GHSA-8j8c-7jfh-h6hx
- JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliasesmoderate · GHSA-h67p-54hq-rp68
- 3.15.0
Backported
maxTotalMergeKeysoption. - 3.14.2
Backported v4.1.1 fix to v3
- 3.14.1
Fix possible code execution in (already unsafe)
.load()(in &anchor). - 3.13.1
Fix possible code execution in (already unsafe)
.load(), #480. - 3.13.0
Security fix:
safeLoad()can hang when arrays with nested refs used as key. Now throws exception for nested arrays. #475. - 2.0.5
Close security issue in !!js/function constructor. Big thanks to @nealpoole for security audit.
Release by release
3.14.1 – 3.15.03 releases, nothing new or fixed in the notes
- new
Support
safe/loadAll(input, options)variant of call. - fixed
Quote
=in plain scalars #519. - fixed
Check the node type for
!<?>tag in case user manually specifies it. - fixed
Verify that there are no null-bytes in input.
- fixed
Fix wrong quote position when writing condensed flow, #526.
- new
3.13.0 – 3.13.12 releases, nothing new or fixed in the notes
- fixed
Fix
noArrayIndentoption for root level, #468.
- fixed
- new
Added
noArrayIndentoption, #432.
- new
- new
Support arrow functions without a block statement, #421.
- new
- new
Add arrow functions suport for
!!js/function. - fixed
Fix dump in bin/octal/hex formats for negative integers, #399.
- new
- fixed
Fix
condenseFlowoutput (quote keys for sure, instead of spaces), #371, #370. - fixed
Dump astrals as codepoints instead of surrogate pair, #368.
- fixed
27 other lines we could not sort, mostly version bumps
- 3.14.0
Dev deps bump.
- 3.8.1
Maintenance: Update browserified build.
- 3.5.3
Maintenance release.
- 3.5.2
Maintenance: Missed comma in bower config.
- 3.5.1
Removed
inheritdependency, #239. - 3.5.1
Better browserify workaround for esprima load.
- 3.5.1
Demo rewrite.
- 3.4.6
Use standalone
inheritto keep browserified files clear. - 3.4.3
Maintenance release - deps bump (esprima, argparse).
- 3.4.0
Throw error on unknown tags (was warning before).
4 internal lines (docs, tests, tooling) left out.