CVE-2025-22872golang.org/x/net vulnerable to Cross-site Scripting
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.6%
- percentile 43%
- Fix
- Named by a source
- CVE published 16 Apr 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.6% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- golang.org/x/net (Go): upgrade to 0.38.0 or later on your release line.
- Patch: https://go.dev/cl/662715
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-22872
Who should check
golang.org/x/net (Go) pkg:golang/golang.org/x/net
- Affected< 0.38.0Fixed in0.38.0OSV (GO-2025-3595)
golang.org/x/net golang.org/x/net/html product:golangorgxnet/golangorgxnethtml
- Affected< 0.38.0Affected range ends before0.38.0as published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 6.5 MEDIUM (version 3.1)
- Score from
- CISA-ADP
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-79
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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).
Update history
- 16 Apr 2025Published
References
- patchhttps://go.dev/cl/662715
- otherhttps://go.dev/issue/73070
- otherhttps://groups.google.com/g/golang-announce/c/ezSKR9vqbqA
- otherhttps://pkg.go.dev/vuln/GO-2025-3595
- otherhttps://security.netapp.com/advisory/ntap-20250516-0007/
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-22872
- otherhttps://security.netapp.com/advisory/ntap-20250516-0007
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-22872 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-vvgc-356p-c3xw (GitHub Advisory Database), CC BY 4.0.
- GO-2025-3595 (Go Vulnerability Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 17 min ago · osv 17 min ago · nvd 78 min ago · epss 17 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-vvgc-356p-c3xw, GO-2025-3595