Skip to main content
← All vulnerabilities
CVE-2026-118652EUVD-2026-112408GHSA-H9G5-28MM-HX3G

Echo: Reflected Cross-Site Scripting (XSS) via unsanitized JSONP callback in Context.JSONP / Context.JSONPBlob

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.16.0, 5.4.0
None on Exploit-DB, Metasploit or GitHub

Summary

Echo, a Go web framework, is affected in applications that use its JSONP response functions (Context.JSONP and Context.JSONPBlob) with a callback name taken from user input. This can let an attacker run malicious scripts in a victim's browser when they open a crafted link or response.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

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.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • labstack echo

    fixed in 4.16.0; From 5.0.0 · fixed in 5.4.0

  • github.com/labstack/echo/v5Go

    fixed in 5.4.0

  • github.com/labstack/echo/v4Go

    fixed in 4.16.0

References 5

GitHub · labstack/echo