# CVE-2025-22872: Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Published: 2025-04-16T16:54:55.000Z
- Modified: 2026-09-10T03:50:24.031Z
- Also known as: GHSA-vvgc-356p-c3xw, GO-2025-3595
- Related: CGA-662r-g5jm-fgx2
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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).

(As written by CVE List.)

## Affected

- golang.org/x/net/html: before 0.38.0
- golang.org/x/net (Go): before 0.38.0

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://go.dev/cl/662715> (fix, web)
- <https://go.dev/issue/73070> (report, web)
- <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/>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22872> (advisory)
- <https://security.netapp.com/advisory/ntap-20250516-0007> (web)

## Sources

- CVE List: [CVE-2025-22872](https://www.cve.org/CVERecord?id=CVE-2025-22872), CVE Terms of Use, modified 2025-05-16
- GitHub Advisory Database: [GHSA-vvgc-356p-c3xw](https://github.com/advisories/GHSA-vvgc-356p-c3xw), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3595](https://pkg.go.dev/vuln/GO-2025-3595), CC-BY-4.0, modified 2026-02-05
- NVD: [CVE-2025-22872](https://nvd.nist.gov/vuln/detail/CVE-2025-22872), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22872 · Whole record: https://cve.day/CVE-2025-22872.json · Rebuilt by cve.day 2026-11-25T22:58:56.636Z
