CVE-2026-27142
MEDIUM6.1EPSS 0.01%URLs in meta content attribute actions are not escaped in html/template
Published: 3/6/2026Modified: 5/15/2026
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.
Affected packages (7)
- Bitnami/golangfrom 0, < 1.25.8, >= 1.26.0-0, < 1.26.1
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Debian/golang-1.24from 0
- Debian/golang-1.25from 0, < 1.25.8-1
- Debian/golang-1.26from 0, < 1.26.1-1
- Go/stdlibfrom 0, < 1.25.8, >= 1.26.0-0, < 1.26.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |