yaml
2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed
2.9.1 is the newest release of 2.x.
In short
7 new2 fixed
Security
1 advisory affects 2.3.0; 2.8.3 fixes them
- Moderateyaml is vulnerable to Stack Overflow via deeply nested YAML collectionsGHSA-48c2-rrv3-qjmp · 25 Mar 2026Fixed in 2.8.3
Release note
This release corresponds with the release of yaml-types v0.2.0, an expanding library of custom tags or types for use with yaml.
This release contains no changes from v2.3.0-5, and the notes below include all changes from the v2.3.0-x prereleases.
Custom Tag Improvements
Add export of
createNode()&createPair()to'yaml/util'Add static
from()methods to simplify tag development, and otherwise make extending custom collections easier
TypeScript Improvements
Add a second optional generic type argument
StricttoDocumentinstances.Add types exports for TypeScript
Export
StringifyContexttype from'yaml/util'
Other New Features
Set explicit tag during
createNode()for non-default tags
Bugfixes
Use correct argument order when stringifying flow collection comments
Improve first-line folding for block scalars
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.