CVE-2026-118655

Echo: Static Middleware Double-Unescape Path Traversal

Published Oct 28, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Echo is a Go web framework. Prior to 4.15.3 and 5.2.0, middleware.Static can decode an already decoded Request.URL.Path a second time. Double-encoded separators can consequently be reconstructed before filesystem resolution. This can reach a file under a guarded route when the static middleware is registered globally. This issue is fixed in 4.15.3 and 5.2.0.

Analysis

AI-generated

Technical impact

A second decoding of an already decoded URL path was performed by Echo’s static file middleware. When an attacker double‑encodes path separators, the middleware reconstructs the separators during a second decode before the operating system resolves the file. This permits the attacker to reference files outside the intended static directory, exposing or overwriting sensitive files that should be protected.

Affected Systems

The web framework Echo, provided by Labstack, is affected in all releases prior to 4.15.3 and 5.2.0. Any deployment that registers the static middleware globally, without an updated version, remains vulnerable.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity. The EPSS score is listed as less than 1 %, suggesting a low but non‑zero probability of exploitation in the wild, and the vulnerability is not included in the CISA KEV catalog. The likely attack vector is a crafted HTTP request sent to an Echo application configured with global static middleware; if the request targets a guarded route, the double‑decode flaw can be used to read or replace protected files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch by upgrading Echo to version 4.15.3 or later, or 5.2.0 or newer, which corrects the double‑unescape logic.
  • If upgrading immediately is infeasible, limit the static middleware to particular routes or disable it for protected paths, preventing the vulnerable code from processing untrusted URLs.
  • Enforce strict filesystem permissions and validate request paths before serving static files to ensure only intended directories are accessible.

Generated by OpenCVE AI on November 6, 2026 at 02:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-xwq5-6cqp-vx96 Echo has a Static Middleware Double-Unescape Path Traversal
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Labstack
Labstack echo
Vendors & Products Labstack
Labstack echo
Type Values Removed Values Added
Description Echo is a Go web framework. Prior to 4.15.3 and 5.2.0, middleware.Static can decode an already decoded Request.URL.Path a second time. Double-encoded separators can consequently be reconstructed before filesystem resolution. This can reach a file under a guarded route when the static middleware is registered globally. This issue is fixed in 4.15.3 and 5.2.0.
Title Echo: Static Middleware Double-Unescape Path Traversal
Weaknesses CWE-174
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-174

    Double Decoding of the Same Data

  • CWE-41

    Improper Resolution of Path Equivalence

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 29, 2026, 6:29 PM
Reserved
Oct 28, 2026, 5:25 PM
Status
Awaiting Analysis
Published
Oct 28, 2026, 8:17 PM
Modified
Oct 29, 2026, 7:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 8:03 PM