SEVERITY NOT PROVIDED EPSS 0.3% · 19th percentile

CVE-2026-118658: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto in github.com/labstack/echo

Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-23wf-92cp-8pcj, GO-2026-6878

Summary

An arbitrary scheme injection vulnerability exists in the WWWRedirect and NonWWWRedirect middlewares of github.com/labstack/echo via the X-Forwarded-Proto header. Engineering teams using affected versions of Echo should review their middleware configuration and update.

Who is affected

Applications utilizing the WWWRedirect or NonWWWRedirect middlewares in github.com/labstack/echo are affected when processing untrusted X-Forwarded-Proto headers. This condition may allow attackers to manipulate redirect schemes improperly. The severity and CWE are not documented.

Exploitability

The vulnerability has a documented EPSS score of 0.002 (83rd percentile). Active exploitation is not listed in the CISA Known Exploited Vulnerabilities database, and the CVSS score and vector are not documented.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Go github.com/labstack/echo/v4 >= 0, < 4.15.2 4.15.2 go get github.com/labstack/echo/[email protected]
Go github.com/labstack/echo/v5 >= 0, < 5.1.1 5.1.1 go get github.com/labstack/echo/[email protected]

FAQ

Which packages are affected by CVE-2026-118658?

Go packages github.com/labstack/echo/v4 (before 4.15.2) and github.com/labstack/echo/v5 (before 5.1.1) are affected.

Is this vulnerability actively exploited in the wild?

No, CISA Known Exploited Vulnerabilities status is no.

What is the root cause of this vulnerability?

Arbitrary scheme injection occurs in the WWWRedirect and NonWWWRedirect middlewares via the X-Forwarded-Proto header.

Original advisory description
Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto in github.com/labstack/echo

References

Source records: GO-2026-6878 (OSV.dev) · EPSS by FIRST, 2026-11-22.