CVE-2026-39826 Details
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.
A vulnerability exists in the Go programming language's html/template package, specifically in versions prior to 1.25.10 and from 1.26.0 up to but not including 1.26.3. This vulnerability allows for cross-site scripting (XSS) attacks by bypassing the template escaper. If a trusted template author includes a <script> tag with an empty 'type' attribute or one containing ASCII whitespace, any data passed into the <script> block will be improperly escaped. This issue was reported by a user named Mundur.
Users can upgrade to Go versions 1.26.3 or 1.25.10, both of which include the necessary fix. Instructions for downloading these versions are available on the Go website.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/771180 | [email protected] | Patch |
| https://go.dev/issue/78981 | [email protected] | Patch |
| https://groups.google.com/g/golang-announce/c/qcCIEXso47M | [email protected] | Release Notes |
| https://pkg.go.dev/vuln/GO-2026-4980 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.25.10 >= 1.26.0, < 1.26.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 13, 2026 | Initial Analysis | [email protected] |
| May 8, 2026 | CVE Modified | CISA-ADP |
| May 7, 2026 | New CVE Received | [email protected] |