yaml
2.9.1 · 11 Sep 2026ISC330.2M / weekRepositoryHomepagenpmAtom feed
1.10.3 is the newest release of 1.x.
In short
8 new1 fixed
Security
1 advisory affects 1.5.0; 1.10.3 fixes them
- Moderateyaml is vulnerable to Stack Overflow via deeply nested YAML collectionsGHSA-48c2-rrv3-qjmp · 25 Mar 2026Fixed in 1.10.3
Release note
New Features
In addition to main export, use only
yaml/parse-cst,yaml/typesandyaml/utilDrop public export of custom tag objects
Rename
tagsoption ascustomTags, and allow/prefer string identifiers for built-in custom tagsAdd warnings to deprecated endpoints (set
_YAML_SILENCE_DEPRECATION_WARNINGSto disable)Drop babel-plugin-add-module-exports, using instead custom untranspiled CommonJS files for public exports
Add protection for exponential entity expansion attacks, such as Billion laughs and quadratic expansion attacks
Add
maxAliasCountoption, defaulting to max 100 aliases for any anchorFor Object, stringify mapping key as YAML rather than JSON
Simplify custom tag creation
Add default stringifier
(item, ...) => item.toString(...)for collectionsAdd
Schema#createPair(key, value, ctx); dropcreate{Map,Seq}exportsImprove & expand documentation on custom tags
Preserve float formatting when parsed to Document
Add optional
minFractionDigitsproperty to numbersAdd
EXPformat handling for float numbersAllow scalar resolvers to return a Scalar instance
Add
prettyErrorsoption, which makes errors prettier and drops theirsourcereferenceAdd common ancestor
YAMLErrorfor error classesReorganise files, e.g. separating
tags/fromschema/and addingconstants.js
Bugfixes
Tag presence in AST node now corresponds to explicit tags in YAML source
Add
Pair#addToJSMap(ctx, map), fixing merge of anchor seq withmapAsMap: true
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.