UBUNTU-CVE-2026-118652: Medium severity ubuntu/golang-github-labstack-echo.v2 vulnerability

Published Oct 29, 2026
·
Updated

Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, Context.JSONP and Context.JSONPBlob concatenate an unvalidated callback value into a JavaScript response. A route that passes attacker-controlled input as the callback can return executable script syntax, allowing reflected cross-site scripting when a user loads the crafted response. The vulnerable jsonPBlob path performs no callback validation or escaping, and exploitation requires an application route that exposes attacker control over the callback argument. This issue is fixed in 4.16.0 and 5.4.0.

Affected Software

6 affected components
ubuntu/golang-github-labstack-echo.v2*
ubuntu/golang-github-labstack-echo*
ubuntu/golang-github-labstack-echo.v2*
ubuntu/golang-github-labstack-echo*
ubuntu/golang-github-labstack-echo*
ubuntu/golang-github-labstack-echo*

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

Frequently Asked Questions

1

Which applications are exposed to exploitation?

Only applications using affected Echo versions that have a route passing attacker-controlled input to Context.JSONP or Context.JSONPBlob as the callback are exposed. The vulnerable behavior is not exploitable solely because Echo is present.

2

What does an attacker need to exploit this issue?

An attacker needs to control the callback value used by an application route and induce a user to load the crafted JSONP response. No authentication is required, but user interaction is required.

3

Are default deployments affected?

A default deployment is not necessarily exploitable. Exploitation depends on application-specific use of Context.JSONP or Context.JSONPBlob with an attacker-controlled callback argument.

4

What versions contain the fix?

The issue is fixed in Echo 4.16.0 and 5.4.0. Versions prior to those releases are affected when the application exposes attacker control over the callback value.

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