CVE-2026-39826

MEDIUM

Escaper bypass leads to XSS in html/template

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 6.1
EPSS 0.0001
EPSS Percentile 2.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-116
Status published
Products (3)
Go standard library/html/template < 1.25.10
Go standard library/html/template 1.26.0-0 - 1.26.3
golang/go < 1.25.10
Published May 07, 2026
Tracked Since May 08, 2026