Advisory

GO-2026-4603

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

Summary

URLs in meta content attribute actions are not escaped in html/template

Details

Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute with the value "refresh".

A new GODEBUG setting has been added, htmlmetacontenturlescape, which can be used to disable escaping URLs in actions in the meta content attribute which follow "url=" by setting htmlmetacontenturlescape=0.

Severity

Not rated by the source.

Dates

Published
2026-03-06 21:03 UTC
Modified
2026-05-15 10:59 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.25.8, introduced 1.26.0-0, fixed 1.26.1 (semver)

Fixed versions

1.25.8, 1.26.1

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