CVE-2026-27142
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.
How to fix
- golang go1.25.8 or later
- stdlib1.25.8, 1.26.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| golang go | v < 1.25.8, 1.26.0 | 1.25.8 |
| stdlibGo | v < 1.25.8, 1.26.0-0 ≤ v < 1.26.1 | 1.25.8, 1.26.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.