CVE-2026-39823
JSON

6.1medium

Bypass of meta content URL escaping causes XSS in html/template

Severity
6.1medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.31% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2026-4982BIT-GOLANG-2026-39823

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

Product or packageVersionsReported by
html/templatebefore 1.25.10, from 1.26.0-0 before 1.26.3CVE List
stdlib (Go)before 1.25.10, from 1.26.0-0 before 1.26.3Go Vulnerability Database
golang gobefore 1.25.10, from 1.26.0 before 1.26.3NVD
golang (Bitnami)before 1.25.10, from 1.26.0-0 before 1.26.3Bitnami Vulnerability Database

All scores

CISA-ADP6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

CVE-2026-27142 corrigió una vulnerabilidad en la que las URL no se escapaban correctamente dentro del atributo [content] de una etiqueta [meta]. Si el contenido de la URL insertara espacios en blanco ASCII alrededor del carácter ’=’ dentro del atributo [content], el mecanismo de escape no lograría escaparlo de manera similar, lo que llevaría a XSS.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39823 changed 2026-05-08CVE Terms of Use
Go Vulnerability DatabaseGO-2026-4982 changed 2026-11-23CC-BY-4.0
NVDCVE-2026-39823 changed 2026-10-26Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2026-39823 changed 2026-09-08Apache-2.0