6.1Media

CVE-2026-39826Escaper bypass leads to XSS in html/template

Go standard library html/template Publicada: (hace 6 meses)

Descripción

If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.

Debilidad (CWE): CWE-79CWE-116

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.25.10, 1.26.0-0 – < 1.26.3
golang go < 1.25.10

Referencias y parches

Coincidencias CPE (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.25.10
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.26.0 < 1.26.3