Security research · CVE-2026-118655
Echo has a Static Middleware Double-Unescape Path Traversal
Published Oct 28, 2026 · catalog updated Nov 5, 2026 · Echo has a Static
Last checked Nov 6, 2026. A connected source was read within the last 7 days.
Check if you run it
No confirmed exploitation is on record for CVE-2026-118655. EPSS is 0.30%. Act only if a listed version of Echo has a Static is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Echo has a Static).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium5.9
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.30%
- Remediation
- Advisory link
- Affected products
- Go github.com/labstack/echo/v4 · Go github.com/labstack/echo/v5 · golang github.com
## Summary Commit a9ede66a (PR #3006, issue #2599) silently fixed a path traversal vulnerability in the Echo web framework's static file middleware. ## Vulnerability The static middleware double-unescaped URL paths. Go's net/http already decodes Request.URL.Path, but middleware/static.go unconditionally called url.PathUnescape() again: This reassembled path traversal sequences from double-encoded input. An attacker could send GET /%2e%2e%2fsecret.txt or /..%252fsecret.txt and the double-unescape would produce ../secret.txt. ## Fix The commit's test TestStatic_percentEncodedTraversalIsBlocked explicitly verifies traversal vectors are blocked. ## Impact Arbitrary file read from server filesystem via percent-encoded path traversal. ## References - Fix: https://github.com/labstack/echo/commit/a9ede66a - Issue: https://github.com/labstack/echo/issues/2599 - PR: https://github.com/labstack/echo/pull/3006 ## Patches Fixed in v5.2.0 and v4.15.3, where the Static middleware stopped unescaping an already decoded path. Maintainer analysis: reading files outside the configured root could not be reproduced; the confirmed impact was that a double-encoded slash ( ) could reach a file under a guarded route when the Static middleware is registered globally. Upgrade to v5.4.0 / v4.16.0 or later, which also includes related fixes for encoded and dot-segment paths. ## Workarounds Keep files that need protection outside the Static middleware's root directory.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- Go github.com/labstack/echo/v40 → 4.15.3
- Go github.com/labstack/echo/v50 → 5.2.0
- golang github.comversion unspecified
How to fix CVE-2026-118655
Upgrade
CVE-2026-118655 lists a fix boundary at 4.15.3. Compare the installed build with that boundary before you change production.
Version check
Fixed in 4.15.3 · 1 other ranges on the advisory
Advisory
Open the cve_org record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-118655. EPSS is 0.30%. Act only if a listed version of Echo has a Static is installed.
Which versions are affected?
Compare what you have installed with 0 → 4.15.3, 0 → 5.2.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-174. EPSS 0.30%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Oct 28, 2026 · GitHub Advisory Database
Detected
## Summary Commit a9ede66a (PR #3006, issue #2599) silently fixed a path traversal vulnerability in the Echo web framework's static file middleware. ## Vulnerability The static middleware double-unescaped URL paths. Go's net/http already decodes Request.URL.Path, but middleware/static.go unconditionally called url.PathUnescape() again: This reassembled path traversal sequences from double-encoded
Oct 28, 2026 · GitHub Advisory Database
Fix available
github.com/labstack/echo/v5 fixed in 5.2.0; github.com/labstack/echo/v4 fixed in 4.15.3
Oct 28, 2026 · GitHub Advisory Database
Fix available
github.com/labstack/echo/v5 fixed in 5.2.0
Oct 28, 2026 · GitHub Advisory Database
Fix available
github.com/labstack/echo/v4 fixed in 4.15.3
Oct 28, 2026 · GitHub Advisory Database
Updated
## Summary Commit a9ede66a (PR #3006, issue #2599) silently fixed a path traversal vulnerability in the Echo web framework's static file middleware. ## Vulnerability The static middleware double-unescaped URL paths. Go's net/http already decodes Request.URL.Path, but middleware/static.go unconditionally called url.PathUnescape() again: This reassembled path traversal sequences from double-encoded
Nov 5, 2026 · Go Vulnerability Database
Updated
## Summary Commit a9ede66a (PR #3006, issue #2599) silently fixed a path traversal vulnerability in the Echo web framework's static file middleware. ## Vulnerability The static middleware double-unescaped URL paths. Go's net/http already decodes Request.URL.Path, but middleware/static.go unconditionally called url.PathUnescape() again: This reassembled path traversal sequences from double-encoded
Sources
- CVE.orgVulnerability recordCVE-2026-118655
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-118655
30-day exploitation probability 0.30%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-xwq5-6cqp-vx96
GitHub Advisory Database record mirrored by OSV.
github.com - GitLab Advisory DatabasePackage advisoryCVE-2026-118655
Commit a9ede66a (PR #3006, issue #2599) silently fixed a path traversal vulnerability in the Echo web framework's static file middleware.
advisories.gitlab.com - Go Vulnerability DatabasePackage advisoryGHSA-xwq5-6cqp-vx96
Echo has a Static Middleware Double-Unescape Path Traversal
osv.dev - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-xwq5-6cqp-vx96
Echo has a Static Middleware Double-Unescape Path Traversal
osv.dev
References
Freshness
Last verified in this catalog Nov 4, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- Go Vulnerability DatabaseNov 6, 2026
- FIRST EPSSNov 4, 2026
- GitLab Advisory DatabaseOct 30, 2026
- CVE.orgOct 29, 2026
- GitHub Advisory DatabaseOct 29, 2026
- OpenSSF OSV / OSV ScannerOct 29, 2026