ADVISORIES

Go Vulnerability Database

GO-2026-6091

Fix Javascript regexp context tracking in html/template

Details

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

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.25.13 (fixed in 1.25.13)
From 1.26.0-0 before 1.26.6 (fixed in 1.26.6)
From 1.27.0-0 before 1.27.0-rc.3 (fixed in 1.27.0-rc.3)

References