Security mailing lists by PureSourceCode

CVE-2026-25766

MEDIUM 5.3CVSS 3.1

Echo has a Windows path traversal via backslash in middleware.Static default filesystem

Echo is a Go web framework. In versions 5.0.0 through 5.0.2 on Windows, Echo’s middleware.Static using the default filesystem allows path traversal via backslashes, enabling unauthenticated remote file read outside the static root. In middleware/static.go, the requested path is unescaped and normalized with path.Clean (URL semantics). path.Clean does not treat \ as a path separator, so ..\ sequences remain in the cleaned path. The resulting path is then passed to currentFS.Open(...). When the filesystem is left at the default (nil), Echo uses defaultFS which calls os.Open (echo.go:792). On Windows, os.Open treats \ as a path separator and resolves ..\, allowing traversal outside the static root. Version 5.0.3 fixes the issue.

Published
19 Feb 2026
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-22
Also known as
GHSA-pgvm-wxw2-hrv9GO-2026-4502
Sources
NVDJSONOSV GHSA-pgvm-wxw2-hrv9JSONOSV GO-2026-4502JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD labstack echo
cpe:2.3:a:labstack:echo:*:*:*:*:*:go:*:*
>= 5.0.0, < 5.0.3 5.0.3
OSV Go github.com/labstack/echo/v5 >= 5.0.0, < 5.0.3 5.0.3

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 19 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Feb 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.