CVE Database
/

CVE-2025-22872

Back to search

CVE-2025-22872

Published: Apr 16, 2025

Modified: May 16, 2025

PUBLISHED

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

VendorProductVersions

golang.org/x/net

golang.org/x/net/html

affected
0 - < 0.38.0

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now