6.1Medium

CVE-2026-94448Reset context tracking on consecutive template expressions in html/template

Go standard library html/template Published: (1 month ago)

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.

Weakness (CWE): CWE-79

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library html/template < 1.26.9, 1.27.0-0 – < 1.27.2

References and patches