CVE-2025-22872: medium-severity vulnerability in golang.org/x/net/html
Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 6.5epss 0.5%
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).
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
Affected products
golang.org/x/net · golang.org/x/net/htmlRelated CVEs — golang.org/x/net/html
In the same product, most dangerous first.
CVE-2024-45338MEDIUMNon-linear parsing of case-insensitive content in golang.org/x/net/htmlEPSS 1.1%CVE-2023-3978—Improper rendering of text nodes in golang.org/x/net/htmlEPSS 0.9%CVE-2025-47911MEDIUMQuadratic parsing complexity in golang.org/x/net/htmlEPSS 0.6%CVE-2025-58190MEDIUMInfinite parsing loop in golang.org/x/netEPSS 0.5%CVE-2026-78661HIGHAvoid quadratic complexity when coalescing text nodes in html in golang.org/x/netEPSS 0.4%CVE-2026-25680MEDIUMInvoking denial of service when parsing arbitrary HTML in golang.org/x/net/htmlEPSS 0.3%