In short
- CVE-2025-22872 is a MEDIUM (CVSS 6.5) vulnerability affecting golang.org/x/net.
- Chance of exploitation in the next 30 days (EPSS): 0.55%, higher than 45.7% of all vulnerabilities.
- Fix: update to 0.38.0 or later.
Description
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).
NVD description
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).
More vulnerabilities in golang.org/x/net
See all →Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free