Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-59868: CWE-407: Inefficient Algorithmic Complexity in nodeca js-yaml

0
Medium
VulnerabilityCVE-2026-59868cvecve-2026-59868cwe-407
Published: 07/08/2026 (07/08/2026, 15:18:19 UTC)
Source: CVE Database V5
Vendor/Project: nodeca
Product: js-yaml

Description

js-yaml versions from 5.0.0 up to but not including 5.2.0 have an inefficient algorithmic complexity issue when merge keys are enabled. This causes the parser to spend quadratic CPU time parsing certain YAML documents that grow linearly in size, specifically when a chain of mappings merges the previous one. This vulnerability can lead to denial of service due to excessive CPU consumption. The issue is fixed in version 5.2.0.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

js-yaml
pkg:npm/js-yaml
Affected versions
>=5.0.0 <5.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 16:14:35 UTC

Technical Analysis

The js-yaml JavaScript library versions >=5.0.0 and <5.2.0 exhibit a CWE-407 inefficient algorithmic complexity vulnerability when merge keys are enabled. Parsing a YAML document with a chain of mappings that merge the previous one causes the CPU time to grow quadratically relative to the document size, which grows only linearly. This can degrade performance and potentially cause denial of service. The vulnerability is resolved in version 5.2.0.

Potential Impact

This vulnerability impacts availability by causing excessive CPU usage during YAML parsing, potentially leading to denial of service conditions. There is no impact on confidentiality or integrity. The CVSS score is 5.3 (medium severity), reflecting the limited scope of impact to availability only and the network attack vector with no privileges or user interaction required.

Mitigation Recommendations

Upgrade js-yaml to version 5.2.0 or later, where this inefficient algorithmic complexity issue is fixed. No other mitigations are indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T15:41:53.607Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a4e73c2c9d9e3dbe36042af

Added to database: 07/08/2026, 15:58:58 UTC

Last enriched: 07/08/2026, 16:14:35 UTC

Last updated: 07/09/2026, 01:40:51 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses