CVE-2025-22872
Last modified
CVE-2025-22872 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.45% chance of exploitation in the next 30 days.
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).
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:L
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-22872?
How severe is CVE-2025-22872?
How do I fix CVE-2025-22872?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-22867On Darwin, building a Go module which contains CGO can trigg…7.5
- CVE-2025-22868An attacker can pass a malicious malformed token which cause…7.5
- CVE-2025-22869SSH servers which implement file transfer protocols are vuln…7.5
- CVE-2025-2287A local code execution vulnerability exists in the Rockwell …7.8
- CVE-2025-22870Matching of hosts against proxy patterns can improperly trea…4.4
- CVE-2025-22871The net/http package improperly accepts a bare LF as a line …9.1
- CVE-2025-22873It was possible to improperly access the parent directory of…3.8
- CVE-2025-22874Calling Verify with a VerifyOptions.KeyUsages that contains …7.5
- CVE-2025-2288A local code execution vulnerability exists in the Rockwell …7.8
- CVE-2025-22880Delta Electronics CNCSoft-G2 lacks proper validation of the …7.8
- CVE-2025-22881Delta Electronics CNCSoft-G2 lacks proper validation of the …7.8
- CVE-2025-22882Delta Electronics ISPSoft version 3.20 is vulnerable to a St…9.8
Are you affected by CVE-2025-22872?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
