Skip to main content
← All vulnerabilities
CVE-2026-27142GO-2026-4603BIT-GOLANG-2026-27142

URLs in meta content attribute actions are not escaped in html/template

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.25.8, 1.26.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • html/template

    fixed in 1.25.8; From 1.26.0-0 · fixed in 1.26.1

  • stdlibGo

    fixed in 1.25.8; From 1.26.0-0 · fixed in 1.26.1

References 4

groups.google.com

go.dev

pkg.go.dev