CVE-2026-59870

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.
Configurations

No configuration.

History

08 Jul 2026, 17:17

Type Values Removed Values Added
References () https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm - () https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm -

08 Jul 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-08 16:16

Updated : 2026-07-08 17:17


NVD link : CVE-2026-59870

Mitre link : CVE-2026-59870

CVE.ORG link : CVE-2026-59870


JSON object : View

Products Affected

No product.

CWE
CWE-407

Inefficient Algorithmic Complexity