{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-118658","id":"CVE-2026-118658","title":"Echo arbitrary URI scheme redirects via forwarded scheme headers","description":"Echo is a Go web framework. Prior to 4.15.2 and 5.1.1, Context.Scheme returns values from X-Forwarded-Proto, X-Forwarded-Protocol, or X-Url-Scheme without validating that they are supported web schemes. WWWRedirect and NonWWWRedirect use that value to construct a Location header, so an attacker controlling a forwarded scheme header can cause a redirect to use an arbitrary URI scheme. Exploitation ","descriptionLong":"Echo is a Go web framework. Prior to 4.15.2 and 5.1.1, Context.Scheme returns values from X-Forwarded-Proto, X-Forwarded-Protocol, or X-Url-Scheme without validating that they are supported web schemes. WWWRedirect and NonWWWRedirect use that value to construct a Location header, so an attacker controlling a forwarded scheme header can cause a redirect to use an arbitrary URI scheme. Exploitation requires an affected redirect middleware and user interaction with the response; the HTTPS-specific redirect variants hardcode HTTPS and are unaffected. This issue is fixed in 4.15.2 and 5.1.1.","published":"2026-10-28T20:17:11.083Z","updated":"2026-11-18T17:27:28.890520241Z","reserved":"2026-10-28T17:25:37.561Z","status":"Undergoing Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/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.1.1","status":"affected"},{"version":"< 4.15.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/labstack/echo/v5","purl":"pkg:golang/github.com/labstack/echo/v5","ranges":["<5.1.1"],"fixed":["5.1.1"],"advisory":"GHSA-23wf-92cp-8pcj"},{"ecosystem":"Go","name":"github.com/labstack/echo/v4","purl":"pkg:golang/github.com/labstack/echo/v4","ranges":["<4.15.2"],"fixed":["4.15.2"],"advisory":"GHSA-23wf-92cp-8pcj"}],"cwes":["CWE-601"],"aliases":["GHSA-23wf-92cp-8pcj","GO-2026-6878"],"references":[{"url":"https://github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/labstack/echo/releases/tag/v4.15.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/labstack/echo/releases/tag/v5.1.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118658.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118658","tags":["advisory"]},{"url":"https://github.com/labstack/echo/pull/2953","tags":["web","fix"]},{"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.00186,"epssPercentile":0.08289,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118658","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118658","ok":true,"note":"Undergoing Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-118658","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-23wf-92cp-8pcj","ok":true,"note":"GHSA-23wf-92cp-8pcj"},{"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-118658","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}