CVE-2025-22872

published 16 Apr 2025 · updated 16 Nov 2026

Incorrect Neutralization of Input During Web Page Generation in x/net in golang.org/x/net

6.5MediumCVSS 6.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.38.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
golang.org/x/net<0.38.00.38.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22872 severity on Zeptric[![CVE-2025-22872](https://zeptric.io/badge/cve/CVE-2025-22872.svg)](https://zeptric.io/cve/CVE-2025-22872)