VulnWatch by ve1ve2
medium 6.1 EPSS 0.37%

GO-2026-4982: Bypass of meta content URL escaping causes XSS in html/template

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
google stdlib

https://osv.dev/vulnerability/GO-2026-4982 ↗

osvgofix-available

Bypass of meta content URL escaping causes XSS in html/template CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a tag's attribute. If the URL content were to insert ASCII whitespaces around the '=' rune inside of the attribute, the escaper would fail to similarly escape it, leading to XSS. Affected: Go:stdlib Fixed in: 1.25.10, 1.26.3 References: https://go.dev/issue/78913 https://go.dev/cl/769920 https://groups.google.com/g/golang-announce/c/qcCIEXso47M

Linked vulnerabilities (2)

CVE-2026-39823 medium 6.1 EPSS 0.31% (p25) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Bypass of meta content URL escaping causes XSS in html/template

CWE: CWE-79Aliases: CVE-2026-27142NVD: Analyzed
CVE-2026-27142 medium 6.1 EPSS 0.37% (p32) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

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.

CWE: CWE-79NVD: Analyzed