Node.js CVE-2026-35213
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious HTTP header value
-
DeliverySend request to @hapi/content parser
-
ExploitTrigger regex catastrophic backtracking
-
ExecutionExhaust CPU resources
-
ImpactNode.js process becomes unresponsive
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity 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 | No special conditions — remote unauthenticated exploitation against default installations of @hapi/content through version 6.0.0. Attacker sends single HTTP request with maliciously crafted Content-Type or Content-Disposition header value to cause denial of service. |
| Impact | This vulnerability presents moderate-to-high real-world risk for internet-facing Node.js applications using @hapi/content. The attack vector is network-based and requires no authentication, allowing any remote attacker to trigger denial of service with a single malformed HTTP request. Attack complexity is low since crafting ReDoS payloads for known vulnerable regex patterns is well-documented and requires minimal skill. However, CVSS scoring data is not available to quantify privileges required or scope impact. The practical exploitability is high given that HTTP header manipulation is trivial using standard tools like curl or custom scripts. The vendor has confirmed the issue and released a patch (GitHub PR #38), indicating acknowledgment of real security impact. While no EPSS score or KEV listing is available for this recent CVE, the combination of unauthenticated remote attack surface, low complexity, and confirmed patch suggests this should be prioritized for remediation in production environments running affected versions. The primary mitigating factor is that exploitation results in temporary service disruption rather than data compromise, and mitigation requires only package upgrade without architectural changes. |
| Exploit ScenarioDerived | An attacker identifies a Node.js web application using @hapi/content for HTTP header parsing, which includes any service built with Hapi.js framework or similar implementations. The attacker crafts a malicious HTTP request containing a Content-Type header value specifically designed to trigger catastrophic backtracking in the vulnerable regex patterns, such as a deeply nested or repetitive structure that exploits the quantifier combinations. Upon sending this single HTTP request to any public endpoint, the Node.js process enters a CPU-intensive regex evaluation loop, blocking the event loop and rendering the application unresponsive to all incoming requests. Legitimate users experience service timeouts and connection failures. The attacker can sustain the denial of service by periodically sending additional malformed requests, effectively taking the application offline without requiring authentication, distributed resources, or sophisticated tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 04, 2026
Regular Expression Denial of Service (ReDoS) in @hapi/content npm package versions through 6.0.0 allows unauthenticated remote attackers to crash Node.js processes via a single HTTP request containing maliciously crafted Content-Type or Content-Disposition header values. Three regular expressions used for header parsing contain catastrophic backtracking patterns that can consume unbounded CPU resources. Vendor-released patch available via GitHub (PR #38). No public exploit code identified at time of analysis, though the attack vector is straightforward for any attacker with HTTP request capabilities.
RemediationAI
Immediately upgrade @hapi/content to the patched version released via GitHub pull request #38 available at https://github.com/hapijs/content/pull/38. The vendor explicitly states there are no known workarounds, making version upgrade the only effective remediation. Update package dependencies by modifying package.json to specify the fixed version (post-6.0.0 release incorporating PR #38 changes) and run npm install or yarn install to apply updates. Verify the updated version is deployed by checking node_modules/@hapi/content/package.json for the correct version number. For containerized deployments, rebuild images with updated dependencies. Consult the primary security advisory at https://github.com/hapijs/content/security/advisories/GHSA-jg4p-7fhp-p32p for any additional vendor guidance. As a temporary risk reduction measure during upgrade deployment windows, consider implementing rate limiting or web application firewall rules to detect and block requests with abnormally long Content-Type or Content-Disposition header values, though this is not a substitute for patching.
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 @hapi/content package is a Node.js library used to parse HTTP Content-Type and Content-Disposition headers, commonly employed in Hapi.js framework applications and other Node.js web services. The vulnerability stems from CWE-1333 (Inefficient Regular Expression Complexity), where three regex patterns used for header parsing contain nested quantifiers and alternation groups that enable catastrophic backtracking. When processing specially crafted input strings, the regex engine enters exponential time complexity, causing the JavaScript event loop to block indefinitely. This is a classic ReDoS attack pattern where algorithmic complexity vulnerabilities in string processing can be weaponized against single-threaded Node.js runtime environments. The affected package is identified by CPE pkg:npm/@hapi_content, indicating this is an npm ecosystem vulnerability affecting all installations prior to the patched version.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Primary rating from Vendor (https://github.com/hapijs/content) · only source for this CVE.
CVSS VectorVendor: https://github.com/hapijs/content
Lifecycle Timeline
2DescriptionCVE.org
All versions of @hapi/content through 6.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTTP header values. Three regular expressions used to parse Content-Type and Content-Disposition headers contain patterns susceptible to catastrophic backtracking.
Impact
Denial of Service. An unauthenticated remote attacker can cause a Node.js process to become unresponsive by sending a single HTTP request with a maliciously crafted header value.
Patches
Fixed by tightening all three regular expressions to eliminate backtracking.
Workarounds
There are no known workarounds. Upgrade to the patched version.
Executive ViewAI
The @hapi/content npm package versions through 6.0.0 contain a Regular Expression Denial of Service (ReDoS) vulnerability that allows unauthenticated attackers to crash Node.js application processes through specially crafted HTTP headers, potentially disrupting service availability for any organization using affected versions in production environments.
Apply vendor patch. If immediate patching is not feasible, implement Web Application Firewall (WAF) rules to reject HTTP requests with abnormally long or complex Content-Type and Content-Disposition header values; restrict HTTP request sizes at ingress points; monitor Node.js process CPU utilization and restart crashed instances automatically.
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.
Affected Products (CPE)CVE.org
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
GHSA-jg4p-7fhp-p32p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB