cve.bz

CVE-2026-39823 golang go: Cross-site Scripting

6.1 mediumEPSS 0.3%Fix available

Medium (6.1) in golang go. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.25.10, 1.26.3.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39823 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39823?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39823?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39823 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library html/templatebefore 1.25.10
Go standard library html/templatefrom 1.26.0-0 before 1.26.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-4982Gostdlib<1.25.10
>=1.26.0-0 <1.26.3
1.25.10, 1.26.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.19no fix listedDEBIAN-CVE-2026-39823
Debian13golang-1.24no fix listedDEBIAN-CVE-2026-39823
Debian14golang-1.261.26.3-1DEBIAN-CVE-2026-39823
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2026-39823
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2026-39823
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2026-39823
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 3 moreno fix listedUBUNTU-CVE-2026-39823
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 5 moreno fix listedUBUNTU-CVE-2026-39823
Ubuntu24.04:LTSgolang-1.21, golang-1.22, golang-1.23 and 2 moreno fix listedUBUNTU-CVE-2026-39823
Ubuntu25.10, 26.04:LTSgolang-1.23, golang-1.24, golang-1.25no fix listedUBUNTU-CVE-2026-39823
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2026-39823
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2026-39823
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2026-39823
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2026-39823
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.25.2-1.module+el8.10.0+23746+9db33b5eRHSA-2026:22112
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.25.10-1.module+el8.10.0+24308+5c4a16b7RHSA-2026:22112
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.26.3-1.el9_8RHSA-2026:22121
Red Hatenterprise_linux:10.2golang, go-toolset, golang-bin and 5 more0:1.26.3-4.el10_2RHSA-2026:22120
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.25-openssl1.25.12-160000.1.1SUSE-SU-2026:22638-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0go1.26-openssl1.26.4-160000.1.1SUSE-SU-2026:22572-1
openSUSELeap 16.0go1.25-openssl1.25.12-160000.1.1openSUSE-SU-2026:21319-1
openSUSELeap 16.0go1.26-openssl1.26.4-160000.1.1openSUSE-SU-2026:21254-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgo1.251.25.10-1.1openSUSE-SU-2026:10723-1
openSUSETumbleweedgo1.261.26.3-1.1openSUSE-SU-2026:10741-1
AlmaLinux8delve1.25.2-1.module_el8.10.0+4074+24330916ALSA-2026:22112
AlmaLinux8golang, go-toolset, golang-bin and 5 more1.25.10-1.module_el8.10.0+4187+c45165c4ALSA-2026:22112
AlmaLinux9golang, go-toolset, golang-bin and 5 more1.26.3-1.el9_8ALSA-2026:22121
Rocky Linux8delve0:1.25.2-1.module+el8.10.0+40035+ee0a7047RLSA-2026:22112
Rocky Linux8golang0:1.25.10-1.module+el8.10.0+40200+0fd0f175RLSA-2026:22112
Rocky Linux9golang0:1.26.3-1.el9_8RLSA-2026:22121
Rocky Linux10golang0:1.26.3-4.el10_2RLSA-2026:22120
Alpinev3.23go1.25.10-r0ALPINE-CVE-2026-39823
Alpinev3.24go1.26.3-r0ALPINE-CVE-2026-39823
Alpinev3.24rclone1.74.1-r0ALPINE-CVE-2026-39823
Azure Linux3golangno fix listedAZL-98700
Alpaquita23, 25go1.25.10-r0BELL-CVE-2026-39823
Alpaquitastreamgo1.26.3-r0BELL-CVE-2026-39823
BellSoft Hardened Containers23, 25go1.25.10-r0BELL-CVE-2026-39823
BellSoft Hardened Containersstreamgo1.26.3-r0BELL-CVE-2026-39823

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat products ship the Go `html/template` package as a dependency of various Go-based components. The affected functionality involves URL escaping inside `<meta>` tag content attributes, which requires an application to render user-controlled URLs in meta tags using `html/template`. While the vulnerable code is present, exploitation requires a specific usage pattern that is uncommon in Red Hat product code paths.

Red Hat's mitigation

Ensure that user-supplied URLs are validated and sanitized before being passed to Go's `html/template` package for rendering in HTML meta tag content attributes. Avoid rendering untrusted URL data directly in meta tag content attributes.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10golang-0:1.26.3-4.el10_2Fixed 2026-06-01RHSA-2026:22120
Red Hat Enterprise Linux 10.0 Extended Update Supportgolang-0:1.26.5-1.el10_0Fixed 2026-08-03RHSA-2026:49702
Red Hat Enterprise Linux 8go-toolset:rhel8-8100020260518131104.a3795deeFixed 2026-06-01RHSA-2026:22112
Red Hat Enterprise Linux 9golang-0:1.26.3-1.el9_8Fixed 2026-06-01RHSA-2026:22121
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgolang-0:1.26.5-1.el9_2Fixed 2026-08-31RHSA-2026:61253
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsgolang-0:1.26.5-1.el9_4Fixed 2026-08-20RHSA-2026:57649
Red Hat Enterprise Linux 9.6 Extended Update Supportgolang-0:1.26.5-1.el9_6Fixed 2026-08-03RHSA-2026:49712
multicluster engine for Kubernetes 2.11multicluster-engine/backplane-rhel9-operator:1786911952Fixed 2026-08-19RHSA-2026:57194
multicluster engine for Kubernetes 2.11multicluster-engine/hypershift-addon-rhel9-operator:1786912006Fixed 2026-08-19RHSA-2026:57194
OpenShift API for Data Protection 1.6oadp/oadp-velero-rhel9:1784058822Fixed 2026-07-22RHSA-2026:43692
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Fix deferred
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-waiters-rhel9Fix deferred
cert-manager Operator for Red Hat OpenShiftcert-manager/jetstack-cert-manager-rhel9Fix deferred
Compliance Operatorcompliance/openshift-compliance-operator-bundleFix deferred
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9-operatorFix deferred
Confidential Compute Attestationconfidential-compute-attestation-tech-preview/trustee-rhel9-operatorFix deferred
Confidential Compute Attestationopenshift-sandboxed-containers/osc-monitor-rhel9Fix deferred
Cryostat 4cryostat/cryostat-storage-rhel9Fix deferred
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel9Fix deferred
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorFix deferred
211 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39823.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON