Vulnerabilities

Vulnerability · CVE-2026-118656

Echo has Open Redirect via Control-Character Prefix Defeating sanitizeURI

Published Oct 28, 2026 · catalog updated Oct 28, 2026 · Echo has Open Redirect

Last checked Nov 4, 2026. A connected source was read within the last 7 days.

Check if you run it

No confirmed exploitation is on record for CVE-2026-118656. EPSS is 0.20%. Act only if a listed version of Echo has Open Redirect is installed.

Gaps on this record

  • The stored product name is a package slug. The name on this page is taken from the title (Echo has Open Redirect).
  • No vendor fix or required action is stored. Compare the linked advisory before you change production.
Severity
Medium6.1
Known exploitation
Not in CISA/VulnCheck KEV
EPSS
0.20%
Remediation
Advisory link
Affected products
Go github.com/labstack/echo/v4 · Go github.com/labstack/echo/v5 · golang github.com

## Summary Echo's dedicated open-redirect guard, , decides whether a redirect target is a local path by inspecting exactly two byte positions: and . If the value begins with a control character such as a tab or a newline, followed by a separator pair, the guard does not fire and the value is written to the header unchanged. Browsers remove tab and newline characters from URLs before parsing them, and treat a backslash as a forward slash for HTTP and HTTPS URLs. A value of (the default rewrites the path internally instead of redirecting), or reject request paths that contain control characters before these middlewares.

Are you affected?

Enter the version you run. The result uses only the ranges stored on this record.

The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.

  • Go github.com/labstack/echo/v40 → 4.16.0
  • Go github.com/labstack/echo/v50 → 5.4.0
  • golang github.comversion unspecified

How to fix CVE-2026-118656

What to do

Three questions, each answered from this record only. Confirm the vendor advisory before you patch.

Should you patch?

No confirmed exploitation is on record for CVE-2026-118656. EPSS is 0.20%. Act only if a listed version of Echo has Open Redirect is installed.

Which versions are affected?

Compare what you have installed with 0 → 4.16.0, 0 → 5.4.0. Compare the installed version with the linked vendor advisory before you change production.

What should an analyst verify?

CWE-601: URL Redirection to Untrusted Site (Open Redirect). EPSS 0.20%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 28, 2026 · GitHub Advisory Database

    Detected

    ## Summary Echo's dedicated open-redirect guard, , decides whether a redirect target is a local path by inspecting exactly two byte positions: and . If the value begins with a control character such as a tab or a newline, followed by a separator pair, the guard does not fire and the value is written to the header unchanged. Browsers remove tab and newline characters from URLs before parsing them,

  2. Oct 28, 2026 · GitHub Advisory Database

    Fix available

    github.com/labstack/echo/v5 fixed in 5.4.0; github.com/labstack/echo/v4 fixed in 4.16.0

  3. Oct 28, 2026 · GitHub Advisory Database

    Fix available

    github.com/labstack/echo/v5 fixed in 5.4.0

  4. Oct 28, 2026 · GitHub Advisory Database

    Fix available

    github.com/labstack/echo/v4 fixed in 4.16.0

  5. Oct 28, 2026 · GitHub Advisory Database

    Updated

    ## Summary Echo's dedicated open-redirect guard, , decides whether a redirect target is a local path by inspecting exactly two byte positions: and . If the value begins with a control character such as a tab or a newline, followed by a separator pair, the guard does not fire and the value is written to the header unchanged. Browsers remove tab and newline characters from URLs before parsing them,

Sources

  • CVE.orgVulnerability recordCVE-2026-118656

    Official CVE identifier

    cve.org
  • FIRST EPSSExploitation probabilityCVE-2026-118656

    30-day exploitation probability 0.20%

    first.org
  • GitHub Advisory DatabasePackage advisoryGHSA-v753-g4cw-jm48

    GitHub Advisory Database record mirrored by OSV.

    github.com
  • GitLab Advisory DatabasePackage advisoryCVE-2026-118656

    Echo's dedicated open-redirect guard, sanitizeURI, decides whether a redirect target is a local path by inspecting exactly two byte positions: uri[0] and uri[1]. If the value begins with a control character such as a tab or a newline, followed by a separator pair, the guard does not fire and the value is written to the Location header unchanged. Browsers remove tab and newline characters from URLs

    advisories.gitlab.com
  • Go Vulnerability DatabasePackage advisoryGHSA-v753-g4cw-jm48

    Echo has Open Redirect via Control-Character Prefix Defeating sanitizeURI

    osv.dev
  • OpenSSF OSV / OSV ScannerPackage advisoryGHSA-v753-g4cw-jm48

    Echo has Open Redirect via Control-Character Prefix Defeating sanitizeURI

    osv.dev

References

Freshness

Last verified in this catalog Nov 4, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.

  • FIRST EPSSNov 4, 2026
  • Go Vulnerability DatabaseOct 31, 2026
  • GitLab Advisory DatabaseOct 30, 2026
  • CVE.orgOct 29, 2026
  • GitHub Advisory DatabaseOct 29, 2026
  • OpenSSF OSV / OSV ScannerOct 29, 2026