Skip to content
CVE PROGRAM SOURCE RECORD6.1 Medium

CVE-2026-39826

Escaper bypass leads to XSS in html/template

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library html/template

Default version status: unaffected

  • 0 to < 1.25.10affected
  • 1.26.0-0 to < 1.26.3affected

References