Node.js CVE-2026-35213
HIGHSeverity 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
4DescriptionGitHub Advisory
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.
AnalysisAI
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.
Technical ContextAI
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.
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.
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
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
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
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat
The HTTP server in Node.js 0.10.x before 0.10.21 and 0.8.x before 0.8.26 allows remote attackers to cause a denial of se
Same technique Denial Of Service
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-jg4p-7fhp-p32p