{"schema":"threatline.record/2","record":{"id":"CVE-2026-118658","aliases":["GHSA-23wf-92cp-8pcj"],"summary":"Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto","details":"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.","categories":["Unclassified"],"product":"echo","vendor":"labstack","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-118658","source_modified_at":"2026-10-28T20:17:11.083Z","fetched_at":"2026-10-28T20:58:01.013507Z","product":"echo","vendor":"labstack","versions":[{"version":">= 5.0.0, < 5.1.1","status":"affected"},{"version":"< 4.15.2","status":"affected"}],"defaultStatus":null}],"fixed_versions":[],"cvss":4.7,"severity":"Medium","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-28T20:17:11.083Z","modified_at":"2026-10-28T20:17:11.083Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118658","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T20:17:11.083Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://github.com/labstack/echo/security/advisories/GHSA-23wf-92cp-8pcj","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/labstack/echo/commit/ca4f38a474302aabee93c66bdd0052359882e181","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/labstack/echo/commit/d1d8ad3f99dd9b80542cd0c357d56a8916c515df","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/labstack/echo/releases/tag/v4.15.2","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/labstack/echo/releases/tag/v5.1.1","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-28T20:17:11.083Z","content_hash":"3e4c211546c5e3dd8c9eb377fe3d063b3618cbe47a7592eed7bb7f30dfac5d25"}}
