ADVISORIES

Go Vulnerability Database

GO-2026-4982

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

Details

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

EcosystemPackageAffected versions
Gostdlib
All versions before 1.25.10 (fixed in 1.25.10)
From 1.26.0-0 before 1.26.3 (fixed in 1.26.3)

References