GO-2026-6599
Dashboard / Vulnerabilities / GO-2026-6599
Summary: Reset context tracking on consecutive template expressions in html/template
Details: 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.
References: https://go.dev/cl/839866, https://go.dev/issue/81821, https://groups.google.com/g/golang-announce/c/U2fTuyDJznI
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.26.9
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
