Vulnerability · Published May 7, 2026 · Assigned by Go

CVE-2026-39823Bypass of meta content URL escaping causes XSS in html/template

Medium 6.1

In plain English

A medium-severity security flaw in html/template from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.3%top 75.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute. If the URL content were to insert ASCII whitespaces around the '=' rune inside of the <content> attribute, the escaper would fail to similarly escape it, leading to XSS.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.25.2-1.module_el8.10.0+4074+24330916ALSA-2026:22112
AlmaLinux:8go-toolset1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9go-toolset1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang-bin1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang-bin1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang-docs1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang-docs1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang-misc1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang-misc1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang-race1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang-race1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang-src1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang-src1.26.3-1.el9_8ALSA-2026:22121
AlmaLinux:8golang-tests1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux:9golang-tests1.26.3-1.el9_8ALSA-2026:22121
Alpine:v3.23go1.25.10-r0ALPINE-CVE-2026-39823
Alpine:v3.24go1.26.3-r0ALPINE-CVE-2026-39823
Alpine:v3.24rclone1.74.1-r0ALPINE-CVE-2026-39823
Debian:12golang-1.19no fix listedDEBIAN-CVE-2026-39823
Debian:13golang-1.24no fix listedDEBIAN-CVE-2026-39823
Debian:14golang-1.261.26.3-1DEBIAN-CVE-2026-39823
Gostdlib1.25.10, 1.26.3GO-2026-4982
Rocky Linux:8delve0:1.25.2-1.module+el8.10.0+40035+ee0a7047RLSA-2026:22112
Rocky Linux:10golang0:1.26.3-4.el10_2RLSA-2026:22120
Rocky Linux:8golang0:1.25.10-1.module+el8.10.0+40200+0fd0f175RLSA-2026:22112
Rocky Linux:9golang0:1.26.3-1.el9_8RLSA-2026:22121
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-39823
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-39823
Ubuntu:24.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39823
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39823
Ubuntu:25.10golang-1.23no fix listedUBUNTU-CVE-2026-39823
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39823
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39823
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2026-39823
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39823
Ubuntu:22.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39823
Ubuntu:24.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39823
Ubuntu:25.10golang-1.25no fix listedUBUNTU-CVE-2026-39823
Ubuntu:26.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39823

Affected products (as reported)

VendorProductVersions
Go standard library html/template 0 – before 1.25.101.26.0-0 – before 1.26.3

References