CVE-2025-22872
The tokenizer incorrectly interprets tags with unquoted attribute …
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).
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- go.dev/cl/662715
- go.dev/issue/73070
- groups.google.com/g/golang-announce/c/ezSKR9vqbqA
- pkg.go.dev/vuln/GO-2025-3595
- security.netapp.com/advisory/ntap-20250516-0007/
- nvd.nist.gov/vuln/detail/CVE-2025-22872
- security.netapp.com/advisory/ntap-20250516-0007
- github.com/advisories/GHSA-vvgc-356p-c3xw
- nvd.nist.gov/vuln/detail/CVE-2025-22872
- cve.org/CVERecord?id=CVE-2025-22872
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.