CVE-2026-27142 Details
Description
Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh". A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.
A cross-site scripting (XSS) vulnerability has been identified in the Go programming language's HTML template package, specifically in versions prior to 1.25.8 and between 1.26.0 and 1.26.1. The issue arises because URLs inserted into the content attribute of HTML meta tags are not properly escaped. This lack of escaping can lead to XSS if the meta tag also includes an http-equiv attribute with the value 'refresh'.
Users can update to Go versions 1.26.1 or 1.25.8, 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 Mar 16, 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/752081 | [email protected] | Mailing List |
| https://go.dev/issue/77954 | [email protected] | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk | [email protected] | Release Notes |
| https://pkg.go.dev/vuln/GO-2026-4603 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.25.8 1.26.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 21, 2026 | Initial Analysis | [email protected] |
| Mar 16, 2026 | CVE Modified | CISA-ADP |
| Mar 10, 2026 | CVE Modified | CISA-ADP |
| Mar 6, 2026 | New CVE Received | [email protected] |