Medium severity · published Oct 28, 2026
CVE-2026-118652
Echo: Reflected Cross-Site Scripting (XSS) via unsanitized JSONP callback in Context.JSONP / Context.JSONPBlob
New
6.1
CVSS
–
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
EC
echo · labstack
< 4.16.0; >= 5.0.0, < 5.4.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-118652
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-118652
x_refsource_CONFIRM
https://github.com/labstack/echo/security/advisories/GHSA-h9g5-28mm-hx3g
x_refsource_MISC
https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
x_refsource_MISC
https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
x_refsource_MISC
https://github.com/labstack/echo/releases/tag/v4.16.0
x_refsource_MISC
https://github.com/labstack/echo/releases/tag/v5.4.0
More from echo
9.6
CVE-2022-40083
Labstack Echo v4.8.0 was discovered to contain an open redirect vulnerability via the Static Handler component
9.1
CVE-2026-118264
Echo: Rejected WebSocket upgrades can bypass Echo route-level access controls
8.2
CVE-2026-118262
Echo: WebSocket proxy can retain connections and handlers after client disconnect
8.2
CVE-2026-118261
Echo: Decompress permits unbounded gzip expansion in v4
8.2
CVE-2026-118260
Echo: BodyDump captures request and response bodies without size limits in v4
