Home

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.

PUBLISHED Reserved 2026-02-17 | Published 2026-03-06 | Updated 2026-03-06 | Assigner Go

Problem types

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Product status

Default status
unaffected

Any version before 1.25.8
affected

1.26.0-0 (semver) before 1.26.1
affected

References

groups.google.com/g/golang-announce/c/EdhZqrQ98hk

go.dev/issue/77954

go.dev/cl/752081

pkg.go.dev/vuln/GO-2026-4603

cve.org (CVE-2026-27142)

nvd.nist.gov (CVE-2026-27142)

Download JSON