# GO-2026-6599: Reset context tracking on consecutive template expressions in html/template

- Database: Go
- Also known as: BIT-GOLANG-2026-94448
- Published: 2026-10-08
- Modified: 2026-11-23

## Tracked as

- [CVE-2026-94448](https://cve.now/CVE-2026-94448.md): Reset context tracking on consecutive template expressions in html/template

## Affected versions

- stdlib (Go): fixed in 1.26.9; from 1.27.0-0, fixed in 1.27.2

## Description

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

Page: https://cve.now/GO-2026-6599

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
