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 · Vendor: https://github.com/hapijs/content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious HTTP header value
  2. Delivery
    Send request to @hapi/content parser
  3. Exploit
    Trigger regex catastrophic backtracking
  4. Execution
    Exhaust CPU resources
  5. Impact
    Node.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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm @hapi/content fix: 6.0.1

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

Vendor (https://github.com/hapijs/content) 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

Primary rating from Vendor (https://github.com/hapijs/content) · only source for this CVE.

CVSS VectorVendor: https://github.com/hapijs/content

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch released
Apr 04, 2026 - 04:30 nvd
Patch available
CVE Published
Apr 04, 2026 - 04:23 nvd
HIGH 8.7

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 59% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:npm/@hapi_content
CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

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-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

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-0224 HIGH POC
7.4 Jun 05

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

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-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

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