js-yaml
5.5.0 · 15 Oct 2026MIT322.7M / weekRepositoryHomepagenpmAtom feed
Upgrading js-yaml from 5.1.0 to 5.2.0
1 release in betweenevery note read
Before you upgrade
Tick each one off as you go- breaking5.2.0
Security
3 advisories still affect 5.2.0
- js-yaml: Exponential parsing time in flow collections leads to denial of servicehigh · GHSA-pm4m-ph32-ghv5
- js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sourcesmoderate · GHSA-r3ph-w7gj-g6xm
- js-yaml: Quadratic-complexity (O(n^2)) DoS via !!omap tag in YAML11_SCHEMAmoderate · GHSA-724g-mxrg-4qvm
Upgrading to 5.4.1 clears them.
Fixes 1 advisory affecting 5.1.0
- js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yamlmoderate · GHSA-g796-fgmg-93mv
Release by release
- new
Added
maxTotalMergeKeys(10000) loader option to limit the total number of keys processed by YAML merge (<<) across oneload()/loadAll()call. - new
Added
maxAliases(-1) loader option to limit the number of YAML aliases per document. - fixed
Round-trip of integers with exponential form (>=
1e21)
- new