Vulnerability · CVE-2025-22872
The tokenizer incorrectly interprets tags with unquoted attribute values that end with a solidus character (/) as self-closing.
Published Apr 16, 2025 · catalog updated May 16, 2025 · The tokenizer incorrectly interprets
Check this week
CVE-2025-22872 is not in CISA KEV. FIRST estimates a 54.00% chance of exploitation in the next 30 days. Check whether you run The tokenizer incorrectly interprets.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (The tokenizer incorrectly interprets).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium6.5
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 54.00%
- Remediation
- Version ranges on file
- Affected products
- vendor golang.org/x/net golang.org/x/net/html 0 <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. , , etc contexts).
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- vendor golang.org/x/net golang.org/x/net/html 0 <0.38.00 <0.38.0
How to fix CVE-2025-22872
Recommended remediation
Affected version ranges suggest a fixed boundary. Verify against the vendor advisory for your release.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2025-22872 is not in CISA KEV. FIRST estimates a 54.00% chance of exploitation in the next 30 days. Check whether you run The tokenizer incorrectly interprets.
Which versions are affected?
Compare what you have installed with golang.org/x/net golang.org/x/net/html 0 <0.38.0 0 <0.38.0. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 54.00%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Apr 16, 2025 · EUVD
Detected
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 f
May 16, 2025 · EUVD
Updated
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 f
Sources
- CVE.orgVulnerability recordCVE-2025-22872
Official CVE identifier
cve.org - EUVDVulnerability recordEUVD-2025-11453
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 resul
euvd.enisa.europa.eu
References
Freshness
Last verified in this catalog Oct 17, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.