{"id":"CVE-2026-33490","published":"2026-03-26T17:19:15Z","modified":"2026-03-26T18:23:39Z","title":"h3: Missing Path Segment Boundary Check in `mount()` Causes Middleware Execution on Unrelated Prefix-Matching Routes","vendor":"h3js","product":"h3","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00269,"percentile":0.19261,"provenance":"source"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"}],"references":[{"url":"https://github.com/h3js/h3/security/advisories/GHSA-2j6q-whv2-gh6w","tags":["x_refsource_CONFIRM"]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":3.85},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"h3js","affectedVersions":[{"vendor":"h3js","product":"h3","versions":[">= 2.0.1-alpha.0, < 2.0.1-rc.17"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-26T17:46:14.997707Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"h3","vulnerableRanges":[">=2.0.1-alpha.0, <2.0.1-rc.17"],"patched":["2.0.1-rc.17"],"from":["GHSA-2j6q-whv2-gh6w"],"provenance":"source"}],"summary":{"text":"The h3 JavaScript HTTP framework's mount() method uses a plain prefix check that does not enforce a path segment boundary, so middleware meant for one mount path also runs for unrelated routes that merely begin with the same characters, such as /admin-public when the mount is /admin. An unauthenticated remote attacker can exploit this over the network by sending a crafted request to a prefix-matching path, with no user interaction required, but the attack is only possible when the application has the affected h3 versions and mounts sub-applications whose middleware sets context values.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:47Z"},"euvd":{"id":"EUVD-2026-16283","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,"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-33490","published":"2026-03-26","fixed":"2.0.1-rc.17","kev":false},{"cve":"CVE-2026-86250","published":"2026-09-06","fixed":"2.0.1-rc.18","kev":false,"link":{"from":"CVE-2026-33490","to":"CVE-2026-86250","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:h3","fromFixed":"2.0.1-rc.17","toFixed":"2.0.1-rc.18","daysApart":164}]}},{"cve":"CVE-2026-33129","published":"2026-03-20","fixed":"2.0.1-rc.9","kev":false}],"package":"npm:h3"}}