6.1Media

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

Go standard library html/template Publicada: (hace 1 mes)

Descripción

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.

Debilidad (CWE): CWE-79

Datos: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Se publican tal como los indican las fuentes, en inglés.

Productos y versiones afectados

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

Referencias y parches