SEVERITY NOT PROVIDED EPSS 0.2% · 6th percentile

CVE-2026-118266: Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method in github.com/labstack/echo

Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-r7w9-592q-9vg4, GO-2026-6877

Summary

Echo contains a CSRF protection bypass vulnerability via MethodOverride which rewrites POST requests to safe methods. Engineering and security teams using affected versions of the Echo web framework must upgrade immediately.

Who is affected

Applications using the github.com/labstack/echo/v4 or github.com/labstack/echo/v5 packages are affected when utilizing MethodOverride functionality. This flaw allows an attacker to bypass Cross-Site Request Forgery (CSRF) protections by converting POST requests into safe HTTP methods.

Exploitability

The vulnerability has an EPSS score of 0.002 (0.056 percentile) indicating a very low current probability of exploitation in the wild. CISA Known Exploited Vulnerabilities status is no, meaning there is no record of active exploitation.

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.16.0 4.16.0 go get github.com/labstack/echo/[email protected]
Go github.com/labstack/echo/v5 >= 5.0.0, < 5.4.0 5.4.0 go get github.com/labstack/echo/[email protected]

FAQ

What packages are affected by this vulnerability?

The affected packages are github.com/labstack/echo/v4 (versions prior to 4.16.0) and github.com/labstack/echo/v5 (versions 5.0.0 up to 5.3.x).

How does the CSRF bypass occur?

The bypass occurs via MethodOverride rewriting POST requests to a safe method.

Is this vulnerability actively exploited?

No, CISA Known Exploited Vulnerabilities status is no.

Original advisory description
Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method in github.com/labstack/echo

References

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