CVE-2026-33131
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious Host header with internal domain
-
ExploitBypass hostname validation in logger middleware
-
ExecutionAccess protected /internal/run endpoint
-
ImpactExecute unauthorized internal operations
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote attacker must craft a request with a specially crafted NodeRequestUrl that bypasses the internalOnly middleware check by exploiting URL parsing inconsistencies in H3 framework. No authentication required. Victim system must be running vulnerable H3 application with the internal endpoint exposed. |
| Impact | This vulnerability presents significant real-world risk with a CVSS score of 7.4 (High severity, AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N). The network attack vector requires no privileges or user interaction, though attack complexity is high due to specific code patterns needed to trigger the vulnerability (logging or accessing event.url properties). A public proof-of-concept demonstrates successful exploitation, significantly lowering the barrier for attackers. The impact is severe as it bypasses authentication middleware protecting sensitive internal endpoints. While EPSS and KEV status data are not provided, the combination of public POC, authentication bypass capability, and widespread use of h3 in Node.js applications makes this a priority for remediation. The attack complexity rating suggests exploitation requires some understanding of the framework's internals, but the POC eliminates much of that barrier. |
| Exploit ScenarioDerived | An attacker targets an h3 application with authentication middleware protecting /internal/run endpoints. By sending a request to /internal/run with a crafted Host header like 'localhost:3000/abchehe?', the attacker causes the route handler to match /internal/run but middleware path matching to evaluate against /abchehe due to the polluted event.url. The authentication middleware fails to apply, granting the attacker unauthorized access to protected internal functionality. The provided Python POC demonstrates this bypass working reliably against vulnerable h3 deployments. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 18, 2026
A Host header manipulation vulnerability in the h3 Node.js web framework allows attackers to bypass authentication middleware by polluting the event.url object. The vulnerability affects h3 npm package and allows unauthorized access to protected routes by crafting malicious Host headers that trigger internal URL reconstruction logic. A working proof-of-concept exploit is publicly available demonstrating the authentication bypass.
RemediationAI
Upgrade to the patched version of h3 as specified in the GitHub Security Advisory at https://github.com/h3js/h3/security/advisories/GHSA-3vj8-jmxq-cgj5. Until patching is possible, avoid accessing event.url, event.url.hostname, or any properties that trigger the _url() getter in middleware or logging code. Implement Host header validation at the reverse proxy or load balancer level to reject requests with malformed Host headers containing path characters. Additionally, review all authentication middleware to ensure it operates on trusted request properties rather than client-controllable headers, and consider implementing defense-in-depth controls such as IP allowlisting for internal endpoints.
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 vulnerability exists in h3's FastURL and NodeRequestUrl implementation (pkg:npm/h3). When code accesses event.url properties like hostname or attempts to serialize the URL object, it triggers the _url() getter method which reconstructs the URL from untrusted HTTP headers. The href getter builds the URL string using this.#protocol, this.#host, this.#pathname, and this.#search without proper validation. Since route handlers are resolved before middleware execution but middleware path matching uses the polluted event.url, attackers can manipulate the Host header to cause middleware to evaluate against a different path than the actual route being handled. This represents CWE-290 (Authentication Bypass by Spoofing) where improper input validation of HTTP headers leads to security control bypass.
Know when the next one hits your stack
- 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:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
H3 NodeRequestUrl bugs
Vulnerable pieces of code :
import { H3, serve, defineHandler, getQuery, getHeaders, readBody, defineNodeHandler } from "h3";
let app = new H3()
const internalOnly = defineHandler((event, next) => {
const token = event.headers.get("x-internal-key");
if (token !== "SUPERRANDOMCANNOTBELEAKED") {
return new Response("Forbidden", { status: 403 });
}
return next();
});
const logger = defineHandler((event, next) => {
console.log("Logging : " + event.url.hostname)
return next()
})
app.use(logger);
app.use("/internal/run", internalOnly);
app.get("/internal/run", () => {
return "Internal OK";
});
serve(app, { port: 3001 });The middleware is super safe now with just a logger and a middleware to block internal access. But there's one problems here at the logger . When it log out the `event.url` or `event.url.hostname` or `event.url._url`
It will lead to trigger one specials method
// _url.mjs FastURL
get _url() {
if (this.#url) return this.#url;
this.#url = new NativeURL(this.href);
this.#href = void 0;
this.#protocol = void 0;
this.#host = void 0;
this.#pathname = void 0;
this.#search = void 0;
this.#searchParams = void 0;
this.#pos = void 0;
return this.#url;
}The NodeRequestUrl is extends from FastURL so when we just access `.url` or trying to dump all data of this class . This function will be triggered !!
And as debugging , the this.#url is null and will reach to this code :
this.#url = new NativeURL(this.href);Where is the this.href comes from ?
get href() {
if (this.#url) return this.#url.href;
if (!this.#href) this.#href = `${this.#protocol || "http:"}//${this.#host || "localhost"}${this.#pathname || "/"}${this.#search || ""}`;
return this.#href;
}Because the this.#url is still null so this.#href is built up by :
if (!this.#href) this.#href = `${this.#protocol || "http:"}//${this.#host || "localhost"}${this.#pathname || "/"}${this.#search || ""}`;Yeah and this is untrusted data go . An attacker can pollute the Host header from requests lead overwrite the event.url .
Middleware bypass
What can be done with overwriting the event.url? Audit the code we can easily realize that the routeHanlder is found before running any middlewares
handler(event) {
const route = this["~findRoute"](event);
if (route) {
event.context.params = route.params;
event.context.matchedRoute = route.data;
}
const routeHandler = route?.data.handler || NoHandler;
const middleware = this["~getMiddleware"](event, route);
return middleware.length > 0 ? callMiddleware(event, middleware, routeHandler) : routeHandler(event);
}So the handleRoute is fixed but when checking with middleware it check with the spoofed one lead to MIDDLEWARE BYPASS
We have this poc :
import requests
url = "http://localhost:3000"
headers = {
"Host":f"localhost:3000/abchehe?"
}
res = requests.get(f"{url}/internal/run",headers=headers)
print(res.text)This is really dangerous if some one just try to dump all the event.url or something that trigger _url() from class FastURL and need a fix immediately.
Executive ViewAI
A critical authentication bypass vulnerability in the h3 Node.js framework allows attackers to gain unauthorized access to protected applications by manipulating HTTP Host headers. Any organization running h3-based services is immediately at risk of unauthorized access, data breaches, and system compromise, with active exploits already in the wild.
Implement WAF rules to validate and sanitize Host headers before reaching the application; deploy network segmentation to restrict h3 service access to trusted sources only; implement strict input validation at the reverse proxy/load balancer level; consider disabling affected h3 services pending patch availability; deploy enhanced authentication mechanisms (MFA) as defense-in-depth; monitor for suspicious Host header patterns in logs.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
GHSA-3vj8-jmxq-cgj5
NVD
CVE.org
EPSS
VulDB
Exploit-DB