Golang HTML Parser XSS Vulnerability in golang.org/x/net

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 incorrect handling of namespaced elements in foreign content, which can lead to an unexpected HTML structure. This vulnerability can be exploited in applications that sanitize input HTML before rendering 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 version 0.55.0 or later of the golang.org/x/net package 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.3
remediation
0.0
relevance
9.1
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.