# CVE-2026-33490: h3: Missing Path Segment Boundary Check in `mount()` Causes Middleware Execution on Unrelated Prefix-Matching Routes

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/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.27%, higher than 20% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-20T20:50:27.000Z
- Modified: 2026-06-17T10:37:35.357Z
- Also known as: GHSA-2j6q-whv2-gh6w
- Weaknesses: CWE-706
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

H3 is a minimal H(TTP) framework. In versions 2.0.0-0 through 2.0.1-rc.16, the `mount()` method in h3 uses a simple `startsWith()` check to determine whether incoming requests fall under a mounted sub-application's path prefix. Because this check does not verify a path segment boundary (i.e., that the next character after the base is `/` or end-of-string), middleware registered on a mount like `/admin` will also execute for unrelated routes such as `/admin-public`, `/administrator`, or `/adminstuff`. This allows an attacker to trigger context-setting middleware on paths it was never intended to cover, potentially polluting request context with unintended privilege flags. Version 2.0.2-rc.17 contains a patch.

(As written by CVE List.)

## Affected

- h3js h3: >= 2.0.1-alpha.0, < 2.0.1-rc.17
- h3 (npm): from 2.0.1-alpha.0 before 2.0.1-rc.17
- h3 h3: 2.0.1

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/h3js/h3/security/advisories/GHSA-2j6q-whv2-gh6w> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33490> (advisory)
- <https://github.com/h3js/h3> (package)

## Sources

- CVE List: [CVE-2026-33490](https://www.cve.org/CVERecord?id=CVE-2026-33490), CVE Terms of Use, modified 2026-03-26
- GitHub Advisory Database: [GHSA-2j6q-whv2-gh6w](https://github.com/advisories/GHSA-2j6q-whv2-gh6w), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33490](https://nvd.nist.gov/vuln/detail/CVE-2026-33490), Public domain, modified 2026-06-17

---

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