Golang HTML Parser XSS Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in the HTML parser of the Golang x/net package, prior to version 0.55.0. The issue arises from the parser's incorrect handling of namespaced elements in foreign content, which can lead to the execution of XSS attacks when the parsed HTML is rendered. This vulnerability affects applications that attempt to sanitize input HTML before displaying it.

Impact

Exploitation of this vulnerability allows for cross-site scripting attacks, where an attacker can inject malicious scripts that are executed in the context of the user's browser.

Remediation

Users can upgrade to Golang x/net version 0.55.0 or later to address this vulnerability.

Added: May 26, 2026, 3:48 PM
Updated: May 26, 2026, 3:48 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.0
remediation
0.0
relevance
8.6
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.