CVE-2025-22872 Details
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).
A vulnerability exists in the Golang 'net/html' package, specifically in versions prior to 0.38.0. The issue arises in the tokenizer, which misinterprets tags with unquoted attribute values ending in a solidus character as self-closing. This misinterpretation can lead to incorrect DOM construction, particularly when parsing foreign content such as <math> or <svg> tags. The flaw allows content following the misinterpreted tags to be placed in the wrong scope during DOM construction.
Users can update to Golang 'net/html' version 0.38.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 16, 2025CISA-ADP
Assessed Apr 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://security.netapp.com/advisory/ntap-20250516-0007/ | CVE | AdvisoryRemedy |
| https://go.dev/cl/662715 | [email protected] | Source CodeVendor |
| https://go.dev/issue/73070 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://groups.google.com/g/golang-announce/c/ezSKR9vqbqA | [email protected] | Mailing ListRemedyVendor |
| https://pkg.go.dev/vuln/GO-2025-3595 | [email protected] | AdvisoryVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| golang.org/x/net/html | All versions |
CPE
Remediation
| |
| NetApp | < 0.38.0 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 16, 2025 | CVE Modified | CVE |
| Apr 16, 2025 | CVE Modified | CISA-ADP |
| Apr 16, 2025 | New CVE Received | [email protected] |
Volerion