VDB
CVE-2026-59870
CVE-2026-59870
PUBLISHED
CVSS 5.3 MEDIUM
Reported by GitHub_M · Published July 8, 2026
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear duplicate-key scan on every insertion, causing O(n^2) CPU consumption when yaml.load() parses a crafted ordered-map document. This issue is fixed in version 5.2.1.
Risk Scores
CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| nodeca | js-yaml | >= 5.0.0, < 5.2.1 |
| nodeca | js-yaml | >= 5.0.0, < 5.2.1, >= 5.0.0, < 5.2.1 |
| wolfi | renovate | 0, 0, 0 |
| npm | js-yaml | 5.0.0 |
| chainguard | renovate | 0, 0, 0 |
Timeline
- Jul 8, 2026 CVE Published
- Jul 9, 2026 EPSS Score
- Jul 9, 2026 Coalition ESS Score
- Jul 20, 2026 CVE Updated
- Aug 7, 2026 EPSS Score
- Aug 13, 2026 Security Advisory
- Aug 24, 2026 EPSS Score
- Aug 26, 2026 EPSS Score
References
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm x_refsource_CONFIRM
- https://github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefe x_refsource_MISC
- https://github.com/nodeca/js-yaml/releases/tag/5.2.1 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-59870 advisory
- https://github.com/advisories/GHSA-724g-mxrg-4qvm advisory