Advisory record · GHSA-h53f-rm2w-w7rg

Echo: X-Real-IP extractor trusts the header value instead of the sending peer

CVSS 5.3 MediumEPSS 0.0014 · 3rd percentile

Published by the GitHub Advisory Database at 23 Oct 2026, 20:50 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/labstack/echo/v5Go>=5.0.0, <5.4.15.4.1
Identifiers
GHSA-h53f-rm2w-w7rg · CVE-2026-118265 · GO-2026-6841
Weakness (CWE)
CWE-348
Published
23 Oct 2026
Updated
5 Nov 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Echo v5 (github.com/labstack/echo/v5) versions 5.0.0 through 5.4.0 are affected. The ExtractIPFromRealIPHeader extractor checks whether the X-Real-IP value is in a trusted range instead of checking the direct network peer, so a remote client that can reach Echo directly, or reach it through a proxy that passes the header on, can make c.RealIP() return a spoofed loopback or private address. Upgrade to v5.4.1. Until then, use ExtractIPDirect or make sure only trusted proxies can reach Echo and that they overwrite client-supplied forwarding headers.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.3 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0014, the 3rd percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 28 Oct 2026, 19:17 UTC Confirmed by NVD
  2. 31 Oct 2026, 14:11 UTC First seen by agentprime
  3. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.