UBUNTU-CVE-2026-118656: Security vulnerability

Published Oct 29, 2026
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Echo to a version that resolves this vulnerability.

    Fixed in 4.16.0
  2. Upgrade

    Upgrade Echo to a version that resolves this vulnerability.

    Fixed in 5.4.0

Event History

Oct 29, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this redirect issue?

Deployments using Echo versions earlier than 4.16.0 or 5.4.0 are exposed when AddTrailingSlash or RemoveTrailingSlash is configured to issue a redirect. The issue affects redirect targets that can contain a slash followed by a TAB and a separator path form.

2

What does an attacker need to exploit it?

An attacker needs to cause a request that reaches the configured trailing-slash redirect behavior with a crafted redirect target. The vulnerable URI sanitization checks only the first two bytes, allowing the crafted value to be placed in the Location header and normalized by a browser to an attacker-controlled host.

3

Are default Echo configurations affected?

The provided information identifies exposure only when AddTrailingSlash or RemoveTrailingSlash is configured with a redirect status. It does not establish that an otherwise default Echo configuration is affected.

4

What should be done if an affected redirect configuration is in use?

Upgrade to Echo 4.16.0 or 5.4.0, depending on the major version in use. If upgrading is not immediately possible, avoid configuring AddTrailingSlash or RemoveTrailingSlash to issue redirects.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203