CVE-2026-27142
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Go standard library | html/template | 0 < 1.25.8 | affected |
| Go standard library | html/template | 1.26.0-0 < 1.26.1 | affected |
Weaknesses
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk
- https://go.dev/issue/77954
- https://go.dev/cl/752081
- https://pkg.go.dev/vuln/GO-2026-4603
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.