CVE-2026-27142
Received Received - Intake
Cross-Site Scripting in Go HTML Meta Tag URL Handling

Publication date: 2026-03-06

Last updated on: 2026-04-21

Assigner: Go Project

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-06
Last Modified
2026-04-21
Generated
2026-05-07
AI Q&A
2026-03-07
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
golang go to 1.25.8 (exc)
golang go 1.26.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability occurs because actions that insert URLs into the content attribute of HTML meta tags do not escape those URLs properly.

If the meta tag also has an http-equiv attribute with the value "refresh", this lack of escaping can allow cross-site scripting (XSS) attacks.

Additionally, a new GODEBUG setting named htmlmetacontenturlescape was introduced, which can disable escaping URLs in meta content attributes that follow "url=" by setting htmlmetacontenturlescape=0.


How can this vulnerability impact me? :

This vulnerability can lead to cross-site scripting (XSS) attacks if an attacker is able to insert malicious URLs into the content attribute of HTML meta tags with an http-equiv="refresh" attribute.

XSS attacks can allow attackers to execute arbitrary scripts in the context of the affected website, potentially leading to session hijacking, defacement, or redirection to malicious sites.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you can disable escaping URLs in actions in the meta content attribute by setting the GODEBUG environment variable htmlmetacontenturlescape=0.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart