Skip to main content

Node.js CVE-2026-35213

HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-04-04 https://github.com/hapijs/content GHSA-jg4p-7fhp-p32p
8.7
CVSS 4.0 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.7 HIGH
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
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

4
Re-analysis Queued
Apr 16, 2026 - 04:50 vuln.today
cvss_changed
Analysis Generated
Apr 04, 2026 - 04:30 vuln.today
Patch released
Apr 04, 2026 - 04:30 nvd
Patch available
CVE Published
Apr 04, 2026 - 04:23 nvd
HIGH 8.7

DescriptionGitHub 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.

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-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-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-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

CVE-2015-5688 MEDIUM POC
5.0 Sep 04

Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read

CVE-2026-45321 CRITICAL POC
9.6 May 12

Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio

CVE-2014-7192 CRITICAL POC
10.0 Dec 11

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

CVE-2013-4450 MEDIUM POC
5.0 Oct 21

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

Share

CVE-2026-35213 vulnerability details – vuln.today

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