Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. h3
  4. ›
  5. CVE-2026-33490

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

March 20, 2026 (updated March 27, 2026)

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.

References

  • github.com/advisories/GHSA-2j6q-whv2-gh6w
  • github.com/h3js/h3
  • github.com/h3js/h3/security/advisories/GHSA-2j6q-whv2-gh6w
  • nvd.nist.gov/vuln/detail/CVE-2026-33490

Code Behaviors & Features

Detect and mitigate CVE-2026-33490 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.1-alpha.0 before 2.0.1-rc.17

Fixed versions

  • 2.0.1-rc.17

Solution

Upgrade to version 2.0.1-rc.17 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-706: Use of Incorrectly-Resolved Name or Reference

Source file

npm/h3/CVE-2026-33490.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.