Skip to content
Heist/ feed
Back to feed
High

Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path

Type: advisorySources: Official CVE List

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.

Products
echo
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-118650
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 06:56 UTC · Revision 1

Source evidence

Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path

core-cve · Original source

Published 28 Oct 2026, 19:25 UTC

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.

cve:CVE-2026-118650

echo

Fixed versions: Not specified

Complete source record
{
  "id": "1028297b3d2eed386e47e9e21869db5fe481e4a936e6b23a2adbd8eaf19acec3",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-118650",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path",
    "summary": "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.",
    "evidence": "cve:CVE-2026-118650",
    "products": [
      {
        "name": {
          "value": "echo",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-118650",
      "aliases": [
        "CVE-2026-118650"
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 7.5,
            "attackVector": "NETWORK",
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
            "integrityImpact": "NONE",
            "userInteraction": "NONE",
            "attackComplexity": "LOW",
            "availabilityImpact": "NONE",
            "privilegesRequired": "NONE",
            "confidentialityImpact": "HIGH"
          }
        }
      ],
      "affected": [
        {
          "vendor": "labstack",
          "product": "echo",
          "versions": [
            {
              "status": "affected",
              "version": ">= 5.0.0, < 5.4.0"
            },
            {
              "status": "affected",
              "version": "< 4.16.0"
            }
          ]
        }
      ],
      "modified": "2026-10-28T19:25:02.952Z",
      "provider": "cve",
      "references": [
        "https://github.com/labstack/echo/security/advisories/GHSA-375p-5qhx-8wq4",
        "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"
      ],
      "provider_metadata": {
        "cna": {
          "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
          "shortName": "GitHub_M",
          "dateUpdated": "2026-10-28T19:25:02.952Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-118650",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 480639,
  "published_at": "2026-10-28T19:25:02.952+00:00"
}