CVE 6.1 MEDIUM

Escaper bypass leads to XSS in html/template_CVE-2026-39826

6.1 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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.

Basic Information

ID CVE-2026-39826
Source Go
Published May 7, 2026 at 19:41
Modified May 8, 2026 at 14:05

Affected Product

Vendor Go standard library
Product html/template
Affected Versions Go standard library html/template 0
Go standard library html/template 1.26.0-0

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.