{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-118657","id":"CVE-2026-118657","title":"Echo HTTPS redirect bypass via forwarded scheme headers","description":"Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Context.Scheme unconditionally trusts forwarded scheme headers from any client. A client that reaches Echo directly over plaintext HTTP can claim an HTTPS scheme and bypass HTTPSRedirect because the request is treated as already secure. Separately, behind a TLS-terminating proxy that passes an attacker-controlled header, a claimed HTTP scheme ","descriptionLong":"Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Context.Scheme unconditionally trusts forwarded scheme headers from any client. A client that reaches Echo directly over plaintext HTTP can claim an HTTPS scheme and bypass HTTPSRedirect because the request is treated as already secure. Separately, behind a TLS-terminating proxy that passes an attacker-controlled header, a claimed HTTP scheme can suppress the Strict-Transport-Security header even though the browser receives the response over HTTPS. The practical risk is reduced when a trusted proxy overwrites the headers and direct backend access is prevented, but the framework previously had no trusted-source configuration for this decision. This issue is fixed in 4.16.0 and 5.4.0.","published":"2026-10-28T20:14:09.883Z","updated":"2026-11-18T17:27:29.622790870Z","reserved":"2026-10-28T17:25:37.561Z","status":"Undergoing Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["labstack echo"],"affectedProducts":[{"vendor":"labstack","product":"echo","defaultStatus":null,"versions":[{"version":">= 5.0.0, < 5.4.0","status":"affected"},{"version":"< 4.16.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/labstack/echo/v5","purl":"pkg:golang/github.com/labstack/echo/v5","ranges":["<5.4.0"],"fixed":["5.4.0"],"advisory":"GHSA-2ffq-g2xg-c22p"},{"ecosystem":"Go","name":"github.com/labstack/echo/v4","purl":"pkg:golang/github.com/labstack/echo/v4","ranges":["<4.16.0"],"fixed":["4.16.0"],"advisory":"GHSA-2ffq-g2xg-c22p"}],"cwes":["CWE-346"],"aliases":["GHSA-2ffq-g2xg-c22p","GO-2026-6879"],"references":[{"url":"https://github.com/labstack/echo/security/advisories/GHSA-2ffq-g2xg-c22p","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/labstack/echo/releases/tag/v4.16.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/labstack/echo/releases/tag/v5.4.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118657.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118657","tags":["advisory"]},{"url":"https://github.com/labstack/echo","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00133,"epssPercentile":0.02945,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118657","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118657","ok":true,"note":"Undergoing Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-118657","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2ffq-g2xg-c22p","ok":true,"note":"GHSA-2ffq-g2xg-c22p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-118657","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}