VulnPulseConnecting…
MediumAdvisoryGoGitHub

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…

Read on GitHub Advisory Database

CVECVE-2026-118658
SourceGitHub Advisory Database
Fetched10/29/2026, 09:48 AM
DataMarkdown JSON

On 10/29/2026, 06:04 AM, GitHub Advisory Database published "Echo has Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto" (type: Advisory). Severity is "Medium" (medium). Related technologies: Go, GitHub. CVE: CVE-2026-118658.