# CVE-2026-33131: h3 has a middleware bypass with one gadget

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T16:18:12.000Z
- Modified: 2026-06-17T10:36:59.997Z
- Also known as: GHSA-3vj8-jmxq-cgj5
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- h3js h3: >= 2.0.0-0, < 2.0.1-rc.15
- h3 (npm): from 2.0.0-0 before 2.0.1-rc.15
- h3 h3: 2.0.0; 2.0.1

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/h3js/h3/security/advisories/GHSA-3vj8-jmxq-cgj5> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33131> (advisory)
- <https://github.com/h3js/h3> (package)

## Sources

- CVE List: [CVE-2026-33131](https://www.cve.org/CVERecord?id=CVE-2026-33131), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-3vj8-jmxq-cgj5](https://github.com/advisories/GHSA-3vj8-jmxq-cgj5), CC-BY-4.0, modified 2026-03-20
- NVD: [CVE-2026-33131](https://nvd.nist.gov/vuln/detail/CVE-2026-33131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33131 · Whole record: https://cve.day/CVE-2026-33131.json · Rebuilt by cve.day 2026-11-25T22:59:16.315Z
