VDB
Sign up
MEDIUM6.1

GO-2026-4603

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

Quick fix

GO-2026-4603 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.25.8

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.25.8
Fixgo get stdlib@v1.25.8

References