6.5medium
Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.61% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-vvgc-356p-c3xwGO-2025-3595
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| golang.org/x/net/html | before 0.38.0 | CVE List |
| golang.org/x/net (Go) | before 0.38.0 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L |
| GitHub | medium 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 |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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).
NVD (es)
El tokenizador interpreta incorrectamente las etiquetas con valores de atributo sin comillas que terminan en barra (/) como autocerradas. Al usar el tokenizador directamente, esto puede provocar que dichas etiquetas se marquen incorrectamente como autocerradas, y al usar las funciones de análisis, esto puede provocar que el contenido posterior a dichas etiquetas se coloque en el ámbito incorrecto durante la construcción del DOM, pero solo cuando las etiquetas se encuentran en contenido externo (por ejemplo, contextos , , etc.).
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22872 changed 2025-05-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vvgc-356p-c3xw changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3595 changed 2026-02-05 | CC-BY-4.0 |
| NVD | CVE-2025-22872 changed 2026-06-17 | Public domain |