# CVE-2026-118656: Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-02)
- Published: 2026-10-28T20:12:13.757Z
- Modified: 2026-11-05T23:25:44.240Z
- Also known as: GHSA-v753-g4cw-jm48, GO-2026-6883
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, sanitizeURI checks only the first two bytes of a redirect target before deciding whether it begins with an absolute-path separator pair. When AddTrailingSlash or RemoveTrailingSlash is configured with a redirect status, a slash, TAB, separator path form can evade the guard, be emitted in the Location header, and be normalized by a browser into an attacker-controlled host. This issue is fixed in 4.16.0 and 5.4.0.

(As written by CVE List.)

## Affected

- labstack echo: >= 5.0.0, < 5.4.0; < 4.16.0
- github.com/labstack/echo/v5 (Go): before 5.4.0
- github.com/labstack/echo/v4 (Go): before 4.16.0

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/labstack/echo/security/advisories/GHSA-v753-g4cw-jm48> (advisory, web)
- <https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1> (fix, web)
- <https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af> (fix, web)
- <https://github.com/labstack/echo/releases/tag/v4.16.0> (web)
- <https://github.com/labstack/echo/releases/tag/v5.4.0> (web)
- <https://github.com/labstack/echo> (package)

## Sources

- CVE List: [CVE-2026-118656](https://www.cve.org/CVERecord?id=CVE-2026-118656), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-v753-g4cw-jm48](https://github.com/advisories/GHSA-v753-g4cw-jm48), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6883](https://pkg.go.dev/vuln/GO-2026-6883), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-118656](https://nvd.nist.gov/vuln/detail/CVE-2026-118656), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-118656 · Whole record: https://cve.day/CVE-2026-118656.json · Rebuilt by cve.day 2026-11-25T22:59:47.686Z
