Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted malicious URL string
-
DeliveryTrigger youtube-regex validation function
-
ExploitCatastrophic regex backtracking
-
ExecutionCPU resource exhaustion
-
PersistApplication hang/timeout
-
ImpactService denial
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target Node.js application to pass untrusted user-controlled input (URLs, strings, form data) directly to youtube-regex validation or extraction functions without length restrictions or timeouts. Vulnerable deployments include public-facing web applications, REST APIs, webhooks, or content management systems that accept YouTube URLs from external users and use youtube-regex ≤1.0.5 for validation or parsing. Applications that pre-validate input length (limiting strings to reasonable YouTube URL sizes under 200 characters) or enforce strict execution timeouts on regex operations significantly reduce exploitation feasibility. Internal applications processing only trusted administrator input or services with robust rate limiting and resource quotas present lower attack surfaces despite using the vulnerable package version. |
| Impact | The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H indicates network-exploitable, low-complexity attacks requiring no privileges or user interaction, with high availability impact confined to the vulnerable component. SSVC framework assessment confirms proof-of-concept exploit exists with automatable exploitation and partial technical impact, elevating priority for teams using this package in production. However, real-world risk is contextual: exploitation requires the application to pass untrusted user input directly to youtube-regex functions without rate limiting or input validation. The vulnerability affects only applications using this specific npm package for URL processing, not YouTube infrastructure itself. No CISA KEV listing or EPSS score provided suggests limited observed exploitation in the wild, though the POC availability (GitHub issue #14 and public Gist) lowers the barrier for attackers. Priority depends on deployment: high for public-facing Node.js services processing arbitrary URLs, moderate for internal tools with input validation, low for applications not using youtube-regex or those with strict input controls and resource limits. |
| Exploit ScenarioDerived | An attacker identifies a Node.js web application using youtube-regex for user-submitted content validation. The attacker crafts a malicious string resembling a YouTube URL but containing character patterns that trigger catastrophic backtracking in the vulnerable regex engine (POC available in GitHub Gist 6en6ar/66ef99397068c0a5e0d963bc47d7172c). By submitting this payload through a public API endpoint or web form that processes URLs without length limits, the attacker causes the validation function to consume CPU resources for seconds or minutes per request. Repeating this attack with concurrent requests exhausts server CPU capacity, causing legitimate user requests to timeout and effectively denying service to the application. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Regular expression denial of service (ReDoS) in youtube-regex npm package versions ≤1.0.5 allows remote unauthenticated attackers to cause service-level availability degradation through network-delivered crafted inputs. Attackers can trigger catastrophic backtracking in the regex parser, causing CPU exhaustion and application hang. SSVC framework confirms proof-of-concept code exists with automatable exploitation capability. While CVSS rates this high severity (7.5) for availability impact, real-world risk depends on whether the vulnerable package processes untrusted user input in production environments.
RemediationAI
Upgrade youtube-regex to a version newer than 1.0.5 if available by checking npm registry for patched releases addressing the ReDoS vulnerability. As of this analysis, no specific patched version number is confirmed from provided data sources - verify current version status at npm and the GitHub repository regexhq/youtube-regex. If no patch exists, implement compensating controls: (1) Add input length validation limiting processed strings to maximum expected YouTube URL length (~100 characters) before passing to youtube-regex functions, trading false negatives for DoS protection; (2) Implement request-level timeout enforcement (e.g., 100ms) around regex operations to prevent resource exhaustion, though this may cause legitimate validation failures on slower systems; (3) Apply rate limiting on endpoints processing user-supplied URLs to prevent automated exploitation; (4) Consider replacing youtube-regex with alternative YouTube URL validation libraries that use non-backtracking algorithms or URL parsing APIs. Review application logs for abnormal CPU spikes correlated with URL validation operations as potential exploitation indicators. Track GitHub issue https://github.com/regexhq/youtube-regex/issues/14 and POC at https://gist.github.com/6en6ar/66ef99397068c0a5e0d963bc47d7172c for upstream remediation guidance.
Affected VersionsENISA
Affected Packages
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 youtube-regex npm package provides regular expression patterns for validating and extracting YouTube URLs. The vulnerability stems from CWE-400 (Uncontrolled Resource Consumption) via Regular Expression Denial of Service (ReDoS). ReDoS occurs when regex engines using backtracking algorithms encounter patterns with nested quantifiers or alternations that create exponential time complexity on specially crafted inputs. The vulnerable regex pattern in youtube-regex versions through 1.0.5 contains constructs susceptible to catastrophic backtracking. When processing malicious input strings, the JavaScript regex engine enters a state where matching time grows exponentially with input length, consuming CPU resources until timeouts occur or the application becomes unresponsive. This is a client-side vulnerability in Node.js applications that use this package for URL validation or extraction.
Know when N A 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
Regex Denial of Service in youtube-regex npm package through version 1.0.5.
Blast Radius
ecosystem impact- 15 npm packages depend on youtube-regex (5 direct, 10 indirect)
Ecosystem-wide dependent count for version 1.0.5.
Executive ViewAI
The youtube-regex npm package (versions ≤1.0.5) contains a regular expression denial of service vulnerability that allows unauthenticated attackers to degrade application availability through crafted inputs, potentially causing service outages if the package processes untrusted data in production environments. Organizations using this dependency should immediately inventory affected applications and assess exposure risk, as no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict input validation and length limits on data processed by the regex engine; (2) Deploy rate-limiting and request throttling at application or WAF layer to prevent ReDoS exploitation; (3) Monitor CPU usage and application response times for anomalies; (4) Consider replacing youtube-regex with a maintained alternative library or custom solution that avoids catastrophic regex backtracking; (5) Restrict network access to affected services to trusted sources only.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2025-209731
GHSA-vpxx-h23g-gxh2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB