medium 6.1
EPSS 0.29%
GO-2026-6599: Reset context tracking on consecutive template expressions in html/template
- Source:
- OSV.dev
- Published:
- Fetched:
- Updated:
- Affects:
- stdlib
https://osv.dev/vulnerability/GO-2026-6599 ↗
osvgofix-available
Reset context tracking on consecutive template expressions in html/template When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and escaped. Affected: Go:stdlib Fixed in: 1.26.9, 1.27.2 References: https://go.dev/cl/839866 https://go.dev/issue/81821 https://groups.google.com/g/golang-announce/c/U2fTuyDJznI