SEVERITY NOT PROVIDED EPSS 0.3% · 16th percentile

CVE-2026-118651: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default in github.com/labstack/echo

Published 2026-11-05 · Updated 2026-11-24 · Also known as GHSA-99jh-6h7p-pp36, GO-2026-6875

Summary

A vulnerability in github.com/labstack/echo causes its reverse proxy component to forward client-supplied X-Real-IP headers to upstream servers by default. Security and engineering teams using affected versions of Echo should upgrade to patched releases.

Who is affected

Applications using github.com/labstack/echo as a reverse proxy are affected when handling untrusted traffic. An attacker can supply an arbitrary X-Real-IP header, which the proxy forwards to upstream destinations without stripping or overriding it. Additional impact details or specific conditions are not documented.

Exploitability

CVSS vector and base score metrics are not provided for this vulnerability. The EPSS score is 0.002 (0.107th percentile), reflecting a low probability of exploitation. CISA Known Exploited Vulnerabilities list does not include this flaw, indicating no known active exploitation.

Remediation

How to check your project

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

Affected packages

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

FAQ

Is CVE-2026-118651 actively being exploited in the wild?

No. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog, and its EPSS score is 0.002.

Are there any documented workarounds?

Workarounds are not documented. The recommended action is to upgrade to a fixed version of the library.

Which specific package versions are impacted?

github.com/labstack/echo/v4 is affected from version 4.0.0 up to (but not including) 4.16.3, and github.com/labstack/echo/v5 is affected for all versions prior to 5.4.0.

Original advisory description
Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default in github.com/labstack/echo

References

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