Advisory record · GHSA-h9g5-28mm-hx3g

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

CVSS 6.1 MediumEPSS 0.0024 · 15th percentile

Published by the GitHub Advisory Database at 28 Oct 2026, 19:54 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/labstack/echo/v5Go<5.4.05.4.0
github.com/labstack/echo/v4Go<4.16.04.16.0
Identifiers
GHSA-h9g5-28mm-hx3g · CVE-2026-118652 · GO-2026-6876
Weakness (CWE)
CWE-79
Published
28 Oct 2026
Updated
5 Nov 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Echo v5 before 5.4.0 and Echo v4 before 4.16.0 do not validate the callback parameter in Context.JSONP and Context.JSONPBlob, so a callback supplied by an attacker is written into the JavaScript response unchanged. An attacker can get a victim to open a crafted link, which can run arbitrary JavaScript in the victim's browser session on the affected site. Upgrade to github.com/labstack/echo/v5 5.4.0 or github.com/labstack/echo/v4 4.16.0; the fixed versions accept only identifier-style callbacks and return 400 otherwise.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0024, the 15th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 28 Oct 2026, 19:35 UTC Confirmed by the CVE List
  2. 28 Oct 2026, 20:17 UTC Confirmed by NVD
  3. 31 Oct 2026, 14:11 UTC First seen by agentprime
  4. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.