CVE-2026-118650: Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path
Vulnerability summary
CVE-2026-118650 is a high (CVSS 7.5) vulnerability in labstack echo. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 34.7% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 20-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 28-10-2026PublishedVulnerability first disclosed.
- 02-11-2026Last modifiedVulnerability information updated.
Description
Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, a globally mounted middleware.Static instance can interpret an encoded request path differently from Echo's router because the router matches the still-encoded path while the static handler uses the decoded URL.Path. The advisory demonstrates an encoded slash resolving to a file under the static root through the global static middleware, but the source is internally inconsistent about whether a route or group guard protects the corresponding literal path in that global-mount configuration. This issue is fixed in 4.16.0 and 5.4.0.
CVSS metrics
4 scores · 4 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.40%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-177Improper Handling of URL Encoding (Hex Encoding)The product does not properly handle when all or part of an input has been URL encoded.
- CWE-863Incorrect AuthorizationThe product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu3 products
- golang-github-labstack-echoAll versions (No fix recorded)
- golang-github-labstack-echo.v2All versions (No fix recorded)
- golang-github-labstack-echo.v3All versions (No fix recorded)
Github.com/labstack/echo2 products
- v4< 4.16.0
- v5< 5.4.0 | ≥ 5.0.0, < 5.4.0
Labstack1 product
- echo≥ 5.0.0, < 5.4.0 | < 4.16.0
3 vendors · 6 products
References
8 links- github.com/labstack/echo/security/advisories/GHSA-375p-5qhx-8wq4X Refsource CONFIRMWEBREPORTAdvisory
- github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1X Refsource MISCWEBREPORTFIX
- github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5afX Refsource MISCWEBREPORTFIX
- github.com/labstack/echoPACKAGE