{"id":"CVE-2026-33131","published":"2026-03-20T10:16:29Z","modified":"2026-03-20T11:25:53Z","title":"h3 has a middleware bypass with one gadget","vendor":"h3js","product":"h3","tier":"tail","description":{"text":"H3 is a minimal H(TTP) framework. Versions 2.0.0-0 through 2.0.1-rc.14 contain a Host header spoofing vulnerability in the NodeRequestUrl (which extends FastURL) which allows middleware bypass. When event.url, event.url.hostname, or event.url._url is accessed, such as in a logging middleware, the _url getter constructs a URL from untrusted data, including the user-controlled Host header. Because H3's router resolves the route handler before middleware runs, an attacker can supply a crafted Host header (e.g., Host: localhost:3000/abchehe?) to make the middleware path check fail while the route handler still matches, effectively bypassing authentication or authorization middleware. This affects any application built on H3 (including Nitro/Nuxt) that accesses event.url properties in middleware guarding sensitive routes. The issue requires an immediate fix to prevent FastURL.href from being constructed with unsanitized, attacker-controlled input. Version 2.0.1-rc.15 contains a patch for this issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00428,"percentile":0.37925,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/h3js/h3/security/advisories/GHSA-3vj8-jmxq-cgj5","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":7.58},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"h3js","affectedVersions":[{"vendor":"h3js","product":"h3","versions":[">= 2.0.0-0, < 2.0.1-rc.15"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-20T11:25:14.200826Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"h3","vulnerableRanges":[">=2.0.0-0, <2.0.1-rc.15"],"patched":["2.0.1-rc.15"],"from":["GHSA-3vj8-jmxq-cgj5"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-13672","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23527","published":"2026-01-15","fixed":"1.15.5","kev":false},{"cve":"CVE-2026-33128","published":"2026-03-20","fixed":"2.0.1-rc.15","kev":false},{"cve":"CVE-2026-33131","published":"2026-03-20","fixed":"2.0.1-rc.15","kev":false},{"cve":"CVE-2026-33490","published":"2026-03-26","fixed":"2.0.1-rc.17","kev":false,"link":{"from":"CVE-2026-33131","to":"CVE-2026-33490","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:h3","fromFixed":"2.0.1-rc.15","toFixed":"2.0.1-rc.17","daysApart":6}]}},{"cve":"CVE-2026-86250","published":"2026-09-06","fixed":"2.0.1-rc.18","kev":false},{"cve":"CVE-2026-33129","published":"2026-03-20","fixed":"2.0.1-rc.9","kev":false}],"package":"npm:h3"}}