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
- Upgrade github.com/labstack/echo/v4 to version 4.16.0 or higher.
- Upgrade github.com/labstack/echo/v5 to version 5.4.0 or higher.
How to check your project
- Inspect project dependency files such as go.mod to check if github.com/labstack/echo/v4 or github.com/labstack/echo/v5 is included.
- Verify the locked versions in go.sum to determine if they fall within the vulnerable ranges (below 4.16.0 for v4 or between 5.0.0 and 5.3.x for v5).
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| 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
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-r7w9-592q-9vg4
- FIX https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
- FIX https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
- WEB https://github.com/labstack/echo/releases/tag/v4.16.0
- WEB https://github.com/labstack/echo/releases/tag/v5.4.0
Source records: GO-2026-6877 (OSV.dev) · EPSS by FIRST, 2026-11-21.