THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-23wf-92cp-8pcj (medium) — Echo has Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto

[GHSA] GHSA-23wf-92cp-8pcj (medium) — Echo has Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto

highgithub_advisoriesPublished 2026-10-28

GHSA-23wf-92cp-8pcj Severity: medium CVE: CVE-2026-118658

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

## Summary

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 `N

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-23wf-92cp-8pcj