Echo
Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.0.0, < 5.4.0
- < 4.16.0
Fixed in 5.4.0, 4.16.0
Mitigation
Upgrade echo to 5.4.0 or 4.16.0 or later.
References
- Vendor advisory github.com/labstack/echo/security/advisories/G…
- Patch github.com/labstack/echo/commit/b838391e2eade8…
- Patch github.com/labstack/echo/commit/fc410094b2f341…
2 more
- Release notes github.com/labstack/echo/releases/tag/v4.16.0
- Release notes github.com/labstack/echo/releases/tag/v5.4.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending
Pending 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| federiconbaez/cortex9-echo-static-encoded-segment-bypass-model | 9 Nov 2026 +12 d | 14 Nov 2026 | 0 | Pending
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.