yaml
2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed
Upgrading yaml From 2.4.4 to 2.9.1
14 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking2.7.0
Security
Fixes 1 advisory affecting 2.4.4
- yaml is vulnerable to Stack Overflow via deeply nested YAML collectionsmoderate · GHSA-48c2-rrv3-qjmp
- 2.9.0
Up to now, I've considered these as security vulnerabilities, and in fact it's the only category of error for which
yamlCVEs have been issued so far. - 2.9.0
Starting from this release, I'll be considering such errors as bugs, but not vulnerabilities.
Release by release
2.9.1nothing new or fixed in the note
- Security
Up to now, I've considered these as security vulnerabilities, and in fact it's the only category of error for which
yamlCVEs have been issued so far. - Security
Starting from this release, I'll be considering such errors as bugs, but not vulnerabilities.
- Fixed
Avoid calling
Array.prototype.push.apply()with large source array - Fixed
lexer: Avoid recursive calls that may exhaust the call stack
- Security
- Fixed
Handle invalid unicode escapes
- Fixed
- New
Add
trailingCommaToString option for multiline flow formatting
- New
- Fixed
Do not double newlines for empty map values
- Fixed
2.8.1nothing new or fixed in the note
- New
Add node cache for faster alias resolution
- New
Add
--mergeoption to CLI tool - New
Allow empty string as plain scalar representation, for failsafe schema
- New
- Fixed
Do not allow seq with single-line collection value on same line with map key
- Fixed
22 other lines we could not sort, mostly version bumps
- 2.9.1
Limit recursive merge aliases (#685, #713)
- 2.9.1
Simplify line unfolding during quoted string parsing
- 2.8.4
Disable alias resolution with
maxAliasCount:0 - 2.8.4
Apply
minFractionDigitsonly to decimal strings - 2.8.3
Catch stack overflow during node composition
- 2.8.2
Serialize -0 as -0
- 2.8.1
Preserve empty block literals
- 2.8.0
Re-introduce compatibility with Node.js 14.6
- 2.8.0
Improve error for tag resolution error on null value
- 2.7.1
Improve warning & avoid TypeError on bad YAML 1.1 nodes
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.