Cross-site scripting in Go programming language - CVE-2026-27142

 

Cross-site scripting in Go programming language - CVE-2026-27142

Published: March 19, 2026


Vulnerability identifier: #VU124117
CSH Severity: Medium
CVSS v4 BT: 1.2 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID: CVE-2026-27142
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary script code in a victim's browser via cross-site scripting (XSS).

The vulnerability exists due to improper output neutralization in html/template when inserting URLs into the content attribute of HTML meta tags with an http-equiv="refresh" attribute. A remote attacker can craft a URL that is not properly escaped, leading to script execution when the page is rendered.

Exploitation requires user interaction, as the victim must load the malicious page. This vulnerability affects applications using the html/template package to generate such meta tags.


Affected software

Go programming language
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
Development Tools Module
openSUSE Leap
openEuler
Anolis OS
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
golang
golang-devel
golang-help
golang-bin
golang-shared
golang-docs
golang-misc
golang-src
golang-tests
go1.25-openssl-race
go1.25-openssl-debuginfo
go1.25-openssl-doc
go1.25-openssl
go1.25-race
go1.25
go1.25-doc
go1.26-openssl
go1.26-openssl-doc
go1.26-openssl-race
go1.26-race
go1.26-doc
go1.26

How to mitigate CVE-2026-27142

Install security update from vendor's website.

Go programming language - addressed in versions 1.25.8, 1.26.1
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.3.1 Patch 5
golang - addressed in versions 1.15.7-60, 1.17.3-48, 1.21.4-43, 1.21.4-44, 1.21.4-46
golang-devel - addressed in versions 1.15.7-60, 1.17.3-48, 1.21.4-43, 1.21.4-44, 1.21.4-46
golang-help - addressed in versions 1.15.7-60, 1.17.3-48, 1.21.4-43, 1.21.4-44, 1.21.4-46
golang - update to 1.24.13-2
golang-bin - update to 1.24.13-2
golang-shared - update to 1.24.13-2
golang-docs - update to 1.24.13-2
golang-misc - update to 1.24.13-2
golang-src - update to 1.24.13-2
golang-tests - update to 1.24.13-2
go1.25-openssl-race - addressed in versions 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1, 1.25.12-150000.1.27.1, 1.25.12-150600.13.21.1
go1.25-openssl-debuginfo - addressed in versions 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1, 1.25.12-150000.1.27.1, 1.25.12-150600.13.21.1
go1.25-openssl-doc - addressed in versions 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1, 1.25.12-150000.1.27.1, 1.25.12-150600.13.21.1
go1.25-openssl - addressed in versions 1.25.8-150000.1.18.1, 1.25.8-150600.13.15.1, 1.25.12-150000.1.27.1, 1.25.12-150600.13.21.1
go1.25-race - addressed in versions 1.25.8-150000.1.32.1, 1.25.12-150000.1.44.1
go1.25 - addressed in versions 1.25.8-150000.1.32.1, 1.25.12-150000.1.44.1
go1.25-doc - addressed in versions 1.25.8-150000.1.32.1, 1.25.12-150000.1.44.1
go1.26-openssl - addressed in versions 1.26.1-150000.1.3.1, 1.26.1-150600.13.3.1
go1.26-openssl-doc - addressed in versions 1.26.1-150000.1.3.1, 1.26.1-150600.13.3.1
go1.26-openssl-race - addressed in versions 1.26.1-150000.1.3.1, 1.26.1-150600.13.3.1
go1.26-race - update to 1.26.1-150000.1.6.1
go1.26-doc - update to 1.26.1-150000.1.6.1
go1.26 - update to 1.26.1-150000.1.6.1

External References

Related Security Bulletins