CVE-2026-118652: Cross-Site Scripting (XSS) via unsanitized JSONP callback in github.com/labstack/echo
Published 2026-11-05 · Updated 2026-11-05 · Also known as GHSA-h9g5-28mm-hx3g, GO-2026-6876
Summary
CVE-2026-118652 is a Cross-Site Scripting (XSS) vulnerability caused by an unsanitized JSONP callback in github.com/labstack/echo. Teams using github.com/labstack/echo/v4 prior to 4.16.0 or github.com/labstack/echo/v5 prior to 5.4.0 should update to the patched releases.
Who is affected
Applications built with Go modules github.com/labstack/echo/v4 (versions from 0 up to 4.16.0) or github.com/labstack/echo/v5 (versions from 0 up to 5.4.0) are affected. The flaw allows Cross-Site Scripting (XSS) via an unsanitized JSONP callback. Specific deployment conditions, required configurations, and broader technical impact details beyond this summary are not documented.
Exploitability
Severity, CVSS base score, and CVSS vector are not provided, so exploitability metrics and required privileges are not documented. The vulnerability has an EPSS score of 0.002 (0.151 percentile), indicating a low estimated probability of exploitation compared to other vulnerabilities. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Remediation
- Upgrade github.com/labstack/echo/v4 to version 4.16.0 or later if using the v4 module.
- Upgrade github.com/labstack/echo/v5 to version 5.4.0 or later if using the v5 module.
- Update go.mod and go.sum to lock the fixed versions, then rebuild and redeploy affected applications.
How to check your project
- Check go.mod and go.sum in your repositories for github.com/labstack/echo/v4 versions below 4.16.0 or github.com/labstack/echo/v5 versions below 5.4.0.
- Run `go list -m github.com/labstack/echo/v4 github.com/labstack/echo/v5` in your Go module workspace to inspect the resolved package versions.
- Search your dependency inventory or SBOMs for identifiers CVE-2026-118652, GHSA-h9g5-28mm-hx3g, or GO-2026-6876.
Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/labstack/echo/v4 |
>= 0, < 4.16.0 | 4.16.0 | go get github.com/labstack/echo/[email protected] |
| Go | github.com/labstack/echo/v5 |
>= 0, < 5.4.0 | 5.4.0 | go get github.com/labstack/echo/[email protected] |
FAQ
What are the CVSS score, severity, and CWE for CVE-2026-118652?
The severity is listed as unknown, and the CVSS vector, CVSS base score, and CWE identifier are not documented in this record.
Is CVE-2026-118652 known to be actively exploited?
No. It is not listed in the CISA Known Exploited Vulnerabilities catalog, and its EPSS score is 0.002 (0.151 percentile).
Are any workarounds available if we cannot upgrade immediately?
Workarounds are not documented in this vulnerability record; upgrading to github.com/labstack/echo/v4 4.16.0 or github.com/labstack/echo/v5 5.4.0 is the documented remediation.
Original advisory description
References
- ADVISORY https://github.com/labstack/echo/security/advisories/GHSA-h9g5-28mm-hx3g
- FIX https://github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1
- FIX https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af
- WEB https://github.com/labstack/echo/releases/tag/v4.16.0
- WEB https://github.com/labstack/echo/releases/tag/v5.4.0
Source records: GO-2026-6876 (OSV.dev) · EPSS by FIRST, 2026-11-22.