CVE-2026-39826
JSON

6.1medium

Escaper bypass leads to XSS in html/template

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.37% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-4980BIT-GOLANG-2026-39826

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

Product or packageVersionsReported by
html/templatebefore 1.25.10, from 1.26.0-0 before 1.26.3CVE List
stdlib (Go)before 1.25.10, from 1.26.0-0 before 1.26.3Go Vulnerability Database
golang gobefore 1.25.10, from 1.26.0 before 1.26.3NVD
golang (Bitnami)before 1.25.10, from 1.26.0-0 before 1.26.3Bitnami Vulnerability Database

All scores

CISA-ADP6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-79CWE-116

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Si un autor de plantilla de confianza escribiera una etiqueta [script_tag] que contuviera un atributo ’type’ vacío o un atributo ’type’ con un espacio en blanco ASCII, la ejecución de la plantilla escaparía incorrectamente cualquier dato pasado al bloque [script_tag].

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39826 changed 2026-05-08CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4980 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-39826 changed 2026-10-26Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2026-39826 changed 2026-09-08Apache-2.0