Golang HTML Parser Duplicate Attributes Leading to Cross-Site Scripting 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 improper handling of duplicate attributes, which can lead to an unexpected HTML structure. When such misparsed HTML is rendered, it can bypass sanitization efforts and execute XSS attacks.

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:53 PM
Updated: May 26, 2026, 3:53 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.0
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.