VulnPulse连接中…
中危漏洞公告GoGitHub

Echo has Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto

影響: go:github.com/labstack/echo/v5 < 5.1.1 → 5.1.1, go:github.com/labstack/echo/v4 < 4.15.2 → 4.15.2

The c.Scheme() method in Echo (context.go:162-181) trusts the X-Forwarded-Proto, X-Forwarded-Protocol, and X-Url-Scheme request headers without validating that the value is http or https. The WWWRedirect() and NonWWWRedirect() middlewares use this unsanitized scheme to construct redirect URLs, allowing an attacker to inject arbitrary URI schemes into the Location response header. Affected Components - context.go:162-181 - Scheme() method returns attacker-controlled value verbatim - middleware/r…

在 GitHub Advisory Database 阅读

CVECVE-2026-118658
来源GitHub Advisory Database
获取时间2026/10/29 09:48
数据Markdown JSON

2026/10/29 06:04,GitHub Advisory Database 发布了“Echo has Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:Go、GitHub。CVE:CVE-2026-118658。