Advisory

GO-2026-4982

Also known as: BIT-golang-2026-39823, CVE-2026-39823

Summary

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.

Severity

Not rated by the source.

Dates

Published
2026-05-07 19:21 UTC
Modified
2026-11-14 13:12 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.25.10, introduced 1.26.0-0, fixed 1.26.3 (semver)

Fixed versions

1.25.10, 1.26.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences