CVE-2026-118650
published high CVSS 3.1 · 7.5Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| labstack | — | echo>= 5.0.0, < 5.4.0 · < 4.16.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| labstack | echo | >= 5.0.0, < 5.4.0 (affected)< 4.16.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-177 CWE-177: Improper Handling of URL Encoding (Hex Encoding)
- CWE-863 CWE-863: Incorrect Authorization
References
5- https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
- https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
- https://github.com/labstack/echo/releases/tag/v4.16.0
- https://github.com/labstack/echo/releases/tag/v5.4.0
- https://github.com/labstack/echo/security/advisories/GHSA-375p-5qhx-8wq4
Provider assertions
2GitHub_M · cna
Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7139bf3208a0b601967a144fc5e9d32911a59a5c3c76e85f3dc367d043203874
- Ingested
- 02 Nov 2026, 20:43:10 UTC
- Source record
- Official CVE record