js-yaml
5.5.0 · 15 Oct 2026MIT322.7M / weekRepositoryHomepagenpmAtom feed
Upgrading js-yaml from 0.3.4 to 3.15.0
65 releases in betweennotes for 9
- ?
- changes to make
- 5
- advisories fixed
- 2+
- new
- 8+
- fixes
Counted from 9 of 65 release notes. Advisories are counted from the advisory database, in full.
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 0.3.4
- 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
- 2.0.5
Close security issue in !!js/function constructor. Big thanks to @nealpoole for security audit.
Release by release
3.0.0 – 3.15.048 releases, no release note
- fixed
Fix wrong loading of empty block scalars.
- fixed
- fixed
Fix unwanted line breaks in folded scalars.
- fixed
- fixed
Dumper now respects deprecated booleans syntax from YAML 1.0/1.1
- fixed
Fixed reader bug in JSON-like sequences/mappings.
- fixed
- new
Add standard YAML schemas: Failsafe (
FAILSAFE_SCHEMA), JSON (JSON_SCHEMA) and Core (CORE_SCHEMA). - new
Add
skipInvaliddumper option. - fixed
Bug fix: export
NILconstant from the public interface.
- new
2.0.4 – 2.0.52 releases, nothing new or fixed in the notes
- fixed
Fixed dumping of empty arrays ans objects. ( and {} instead of null)
- fixed
- fixed
Fixed input validation: tabs are printable characters.
- fixed
3 other lines we could not sort, mostly version bumps
- 2.1.0
Rename
DEFAULT_SCHEMAtoDEFAULT_FULL_SCHEMAandSAFE_SCHEMAtoDEFAULT_SAFE_SCHEMA. - 2.1.0
Use
safeLoadforrequireextension. - 2.0.4
Updated .npmignore to reduce package size