CVE-2026-56858

GO-2026-6091 · published 13 Aug 2026 · updated 14 Nov 2026

Fix Javascript regexp context tracking in html/template

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3 and 1 more.

Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.25.13, >=1.26.0-0 <1.26.6, >=1.27.0-0 <1.27.0-rc.31.25.13, 1.26.6, 1.27.0-rc.3
go: stdlib>=1.27.0-0 <1.27.0-rc.31.27.0-rc.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-56858 severity on Zeptric[![CVE-2026-56858](https://zeptric.io/badge/cve/CVE-2026-56858.svg)](https://zeptric.io/cve/CVE-2026-56858)