6.1Mittel

CVE-2026-27142URLs in meta content attribute actions are not escaped in html/template

Go standard library html/template Veröffentlicht: (vor 8 Monaten)

Beschreibung

Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.

Schwachstellentyp (CWE): CWE-79

Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.

Betroffene Produkte und Versionen

HerstellerProduktVersionen
Go standard library html/template < 1.25.8, 1.26.0-0 – < 1.26.1
golang go < 1.25.8

Referenzen und Patches

CPE-Treffer (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.25.8
  • cpe:2.3:a:golang:go:1.26.0:*:*:*:*:*:*:*