THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-r7w9-592q-9vg4 (medium) — Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method

[GHSA] GHSA-r7w9-592q-9vg4 (medium) — Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method

highgithub_advisoriesPublished 2026-10-28

GHSA-r7w9-592q-9vg4 Severity: medium CVE: CVE-2026-118266

Echo has CSRF Protection Bypass via MethodOverride Rewriting POST to Safe Method

## Summary

The `MethodOverride` middleware accepts any non-empty string as the override target method — including safe methods (GET, HEAD, OPTIONS, TRACE) — when rewriting a POST request. When `MethodOverride` is registered before `CSRF` in the post-routing

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-r7w9-592q-9vg4