CVE-2026-59870

HIGH CVSS 3.1: 7.5 EPSS 0.64%
Updated Jul 10, 2026
Nodeca
Parameter Value
CVSS 7.5 (HIGH)
Affected Versions 5.0.0 — 5.2.1
Fixed In 5.2.1
Type CWE-770 (Allocation Without Limits), CWE-407
Vendor Nodeca
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Nodeca Js-Yaml
cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:*
5.0.0 5.2.1