CVE-2026-27142: Golang 1.24 · Actions which insert URLs into the content attribute of HTML meta tags are not escaped
Affects golang-1.24Source GCVE Database
Not known to be exploited · CVSS 6.1 Medium.
Data as of 17 Nov 2026, 20:49 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
No explicit patch or fixed version is provided in the data. Users can mitigate the risk by configuring the GODEBUG setting htmlmetacontenturlescape=0 to disable URL escaping in meta content attributes, which may affect behavior. Monitor vendor advisories for official patches or updates.
Description
Golang 1.24 contains a vulnerability where URLs inserted into the content attribute of HTML meta tags are not escaped. This can lead to cross-site scripting (XSS) if the meta tag also includes an http-equiv attribute with the value "refresh". A new GODEBUG setting, htmlmetacontenturlescape, allows disabling URL escaping in these meta content attributes by setting it to 0.
References
- ubuntu.com/security/CVE-2026-27142 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-27142 (opens in a new tab)
- github.com/golang/go/issues/77954 (opens in a new tab)
- go.dev/cl/752081 (opens in a new tab)
- go.dev/issue/77954 (opens in a new tab)
- groups.google.com/g/golang-announce/c/EdhZqrQ98hk (opens in a new tab)
- pkg.go.dev/vuln/GO-2026-4603 (opens in a new tab)