CVE-2025-22872
MEDIUM 6.5CVSS 3.1golang.org/x/net vulnerable to Cross-site Scripting
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).
- Published
- 16 Apr 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@golang.org
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-vvgc-356p-c3xwGO-2025-3595
- Sources
- NVDJSONOSV GHSA-vvgc-356p-c3xwJSONOSV GO-2025-3595JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | golang.org/x/net | < 0.38.0 | 0.38.0 |
References
- https://go.dev/cl/662715 · WEB, FIX
- https://go.dev/issue/73070 · WEB, REPORT
- https://groups.google.com/g/golang-announce/c/ezSKR9vqbqA · WEB
- https://pkg.go.dev/vuln/GO-2025-3595 · WEB
- https://security.netapp.com/advisory/ntap-20250516-0007/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-22872 · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 16 Apr 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Apr 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Apr 2025)