Nodeca js-yaml
js-yaml: YAML merge-key chains can force quadratic CPU consumption
js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 before 3.15.0 and from 4.0.0 before 4.3.0, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where each mapping merges the previous one. This issue is fixed in versions 3.15.0 and 4.3.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-407
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
nodeca js-yaml
- >= 3.0.0, < 3.15.0
- >= 4.0.0, < 4.3.0
Fixed in 3.15.0, 4.3.0
Mitigation
Upgrade js-yaml to 3.15.0 or 4.3.0 or later.
References
- Vendor advisory github.com/nodeca/js-yaml/security/advisories/…
- Patch github.com/nodeca/js-yaml/commit/24f13e79ee134…
- Patch github.com/nodeca/js-yaml/commit/59423c6f8cdc7…
2 more
- Release notes github.com/nodeca/js-yaml/releases/tag/3.15.0
- Release notes github.com/nodeca/js-yaml/releases/tag/4.3.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.