CVE-2025-22872golang.org/x/net/html
Medium 6.5 No auth needed
Follow: this CVE · golang.org/x/net · golang.org/x/net/html We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Apr 16, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
What happens
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
- Apply the vendor's security update for golang.org/x/net/html.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | golang.org/x/net |
< 0.38.0 |
0.38.0 |
go get golang.org/x/net@v0.38.0 |
| Go | golang.org/x/net |
< 0.38.0 |
0.38.0 |
go get golang.org/x/net@v0.38.0 |
Per OSV / GitHub Advisories (GHSA-vvgc-356p-c3xw, GO-2025-3595). Check the version in your lockfile before upgrading.
Affected products
- golang.org/x/net · golang.org/x/net/html
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- kubectl-retina-1.3.1-1.1 on GA media · SUSE · openSUSE-SU-2026:12297-1 · Oct 27, 2026 Critical
- kumactl-3.0.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12300-1 · Oct 27, 2026 Critical
- timoni-0.36.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12309-1 · Oct 27, 2026 Critical
Also: SUSE (+26)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.