# CVE-2026-27142: URLs in meta content attribute actions are not escaped in html/template

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-03-06T21:03:42.000Z
- Modified: 2026-09-08T08:47:49.644Z
- Also known as: GO-2026-4603, BIT-GOLANG-2026-27142
- Related: CGA-g36f-884r-6gj3, RHSA-2026:5192, RHSA-2026:7291
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- html/template: before 1.25.8; from 1.26.0-0 before 1.26.1
- stdlib (Go): before 1.25.8; from 1.26.0-0 before 1.26.1
- golang go: before 1.25.8; 1.26.0
- golang (Bitnami): before 1.25.8; from 1.26.0-0 before 1.26.1

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://groups.google.com/g/golang-announce/c/EdhZqrQ98hk> (article, release-notes, web)
- <https://go.dev/issue/77954> (issue-tracking, report)
- <https://go.dev/cl/752081> (discussion, fix, mailing-list)
- <https://pkg.go.dev/vuln/GO-2026-4603> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27142> (web)

## Sources

- CVE List: [CVE-2026-27142](https://www.cve.org/CVERecord?id=CVE-2026-27142), CVE Terms of Use, modified 2026-03-16
- Go Vulnerability Database: [GO-2026-4603](https://pkg.go.dev/vuln/GO-2026-4603), CC-BY-4.0, modified 2026-05-15
- NVD: [CVE-2026-27142](https://nvd.nist.gov/vuln/detail/CVE-2026-27142), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-27142](https://osv.dev/vulnerability/BIT-GOLANG-2026-27142), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-27142 · Whole record: https://cve.day/CVE-2026-27142.json · Rebuilt by cve.day 2026-11-25T22:59:15.443Z
