XSS in Golang.org/x/net Golang.org/x/net/html
CVE-2025-22872
The tokenizer incorrectly interprets tags with unquoted attribute values that end with a solidus character (/) as self-closing. When directly using Tokenizer, this can result in such tags incorrectly being marked as self-closing, and when using the Parse functions, this can result in content following such tags as being placed in the wrong scope during DOM construction, but only when tags are in foreign content (e.g. <math>, <svg>, etc contexts).
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.006, 46.9th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang.org/x/net Golang.org/x/net/html — versions 0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 6 other repositories (8-cm/kube-dump, ARPSyndicate/cve-scores, fleaz/trivy-renderer, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.