MEDIUM5.3
GO-2026-6841
Echo: X-Real-IP extractor trusts the header value instead of the sending peer in github.com/labstack/echo
Quick fix
GO-2026-6841 — github.com/labstack/echo/v5: upgrade to the fixed version with the command below.
go get github.com/labstack/echo/v5@v5.4.1Details
Echo: X-Real-IP extractor trusts the header value instead of the sending peer in github.com/labstack/echo
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/labstack/echo/v5
Introduced in:
5.0.0Fixed in: 5.4.1Fix
go get github.com/labstack/echo/v5@v5.4.1