Skip to main content

js-yaml EUVDEUVD-2026-58185

| CVE-2026-73643 HIGH
Inefficient Algorithmic Complexity (CWE-407)
2026-08-13 security-advisories@github.com GHSA-pm4m-ph32-ghv5
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Send crafted nested flow-sequence payload
  2. Delivery
    Parser enters readFlowCollection loop
  3. Exploit
    restoreState triggers duplicate parseNode calls per level
  4. Install
    O(2^n) work accumulates across nesting depth
  5. C2
    CPU saturated at ~30 levels
  6. Execute
    Node.js event loop blocked
  7. Impact
    All concurrent requests stall, service unavailable

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
Exploitation Conditions

The application must call js-yaml's load() or loadAll() on input that is fully or partially controlled by an untrusted party, such as HTTP request bodies, query parameters, file uploads, or webhook payloads. No anchors, aliases, merges, tags, or non-default schema options are required - the vulnerability triggers on the default YAML schema. The YAML maxDepth option (default 100) does not limit exploitation because the time becomes unmanageable well before depth limits are reached. What limits exploitation: affected versions are 5.0.0-5.2.1 only; applications that run YAML parsing in an isolated worker thread with a hard timeout will avoid event-loop stalls even if the parse hangs; applications that never expose YAML parsing to untrusted input are not at risk regardless of version.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, score 7.5) accurately captures the threat model: no authentication, no user interaction, default configuration, and complete availability impact. There is no conflict between the vector and the description. The attack is trivially automatable - a static sub-200-byte payload is reusable across all vulnerable instances. A public PoC is embedded in the GHSA advisory (GHSA-pm4m-ph32-ghv5), which significantly lowers attacker entry cost. No CISA KEV listing was present in the input, so active exploitation is not confirmed by CISA at time of analysis. EPSS data was not provided. The single-threaded Node.js event loop amplifies the real-world impact: one stalled parse blocks the entire process, multiplying the service-unavailability effect across all concurrent users. This is a genuine operational priority for any application exposing YAML parsing of untrusted input.

Exploit ScenarioDerived

An attacker sends a single HTTP request with a body containing [ .repeat(30) + 1 + ]: 0.repeat(30) - a 30-level nested flow sequence under 200 bytes - to any endpoint that passes request content to js-yaml's load() or loadAll(). The parser enters the exponential re-parse loop, saturating one CPU core for over two minutes and blocking the Node.js event loop, which causes the server to stop responding to all other concurrent requests. A functional PoC for this exact payload is published in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Exponential parsing time in js-yaml 5.0.0 through 5.2.1 enables unauthenticated remote denial of service via a crafted YAML payload under 200 bytes. The parser's flow-collection logic re-parses nested flow-sequence keys rather than caching results, producing O(2^n) work per nesting level - approximately 30 levels suffices to stall a Node.js process for over two minutes on a single CPU. A functional proof-of-concept is published in the GHSA advisory; no special YAML features or non-default configuration options are required to trigger the flaw.

RemediationAI

Upgrade js-yaml to version 5.2.2, the vendor-released patch that resolves this issue via commit 3e5240f9cbe645ce5afb58524954a13c8539c853 (https://github.com/nodeca/js-yaml/commit/3e5240f9cbe645ce5afb58524954a13c8539c853). The vendor advisory is at https://github.com/nodeca/js-yaml/security/advisories/GHSA-pm4m-ph32-ghv5. If an immediate upgrade is not feasible, do not pass untrusted, externally-supplied content directly to load() or loadAll() without preprocessing - note that restricting payload size alone is insufficient since the exploit input is under 200 bytes. A targeted compensating control is to offload YAML parsing to a worker_threads Worker with a hard timeout so that a stalled parse cannot block the main event loop; this adds implementation complexity but prevents process-wide availability loss. Schema-level allowlisting of permitted YAML constructs (rejecting flow collections from untrusted input) would eliminate the vulnerable code path without requiring an upgrade.

Affected VersionsENISA

js-yaml 5.0.0, < 5.2.2

Affected Packages

npm js-yaml fix: 5.2.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in the readFlowCollection function within src/parser/parser.ts of js-yaml 5.x (CWE-407: Inefficient Algorithmic Complexity). When a flow-sequence entry is discovered to be a key:value pair, the parser calls restoreState to rewind and then invokes parseNode a second time to re-interpret the already-parsed entry as the key. If that key is itself a nested flow sequence of identical shape, the dual-parse recurses: each nesting level doubles the total work, yielding O(2^n) complexity. The YAML maxDepth guard (default 100) does not mitigate this because execution time becomes unmanageable at roughly 30-40 levels, far below the depth ceiling. The fix in commit 3e5240f9 introduces insertFlowPairMappingEvent, which injects a mapping event directly into the event list instead of rewinding and re-parsing, eliminating the exponential path entirely.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-reachable via any HTTP endpoint calling load(); no auth or special config required; sole impact is complete availability loss from event-loop saturation; no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Aug 13, 2026 - 19:04 EUVD
CVE Published
Aug 13, 2026 - 18:18 cve.org
HIGH 7.5

DescriptionCVE.org

js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 until 5.2.2, parsing a small YAML document can take exponential time when an application calls load() or loadAll() on untrusted input. In src/parser/parser.ts, readFlowCollection uses restoreState and calls parseNode a second time when a flow-sequence entry is recognized as a key: value pair. If the key is a nested flow sequence of the same shape, every level is parsed twice, causing O(2^n) work and allowing an input under 200 bytes to keep one CPU busy for minutes, block the Node.js event loop, and stall the process. No anchors, aliases, merges, tags, or nondefault options are required. This issue is fixed in version 5.2.2.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 9 npm packages depend on js-yaml (7 direct, 2 indirect)

Ecosystem-wide dependent count for version 5.0.0.

Executive ViewAI

Why It Matters

js-yaml versions 5.0.0-5.2.1 contain an unauthenticated remote denial of service vulnerability-publicly available exploit code exists. Any Node.js application using these versions can be crashed with a sub-200-byte YAML payload, directly impacting service availability for customer-facing or internal systems without requiring authentication.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: downgrade to js-yaml version 4.x if feasible; implement strict input size limits and validation for YAML payloads; configure rate limiting on endpoints accepting YAML input; segment networks to restrict YAML processing to trusted internal sources; monitor affected services for performance degradation, elevated CPU usage, or connection timeouts.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
High
widely used npm YAML parser, tens of millions of weekly downloads
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy