Script execution via comment-preserving HTML parsing
Published Jan 2, 2024 · Updated Apr 17, 2025
Mutation XSS in OWASP AntiSamy .NET before 1.2.0 allows remote attackers to execute script through sanitized HTML output. The HTML parser's comment-preservation path emits crafted noscript, style, or related tag structures that browsers reinterpret as executable markup. Exploitation requires an application to render the sanitized output and user interaction, exposing data or modifying content in the affected browser context.
Summary
What happened
Mutation XSS in OWASP AntiSamy .NET before 1.2.0 allows remote attackers to execute script through sanitized HTML output. The HTML parser's comment-preservation path emits crafted noscript, style, or related tag structures that browsers reinterpret as executable markup. Exploitation requires an application to render the sanitized output and user interaction, exposing data or modifying content in the affected browser context.
The record
- CVE
- CVE-2023-51652
- Published
- Jan 2, 2024
- Updated
- Apr 17, 2025
- Vendor
- Sebastián Passaro
- Product
- OWASP AntiSamy .NET
- Classifications
- CWE-79, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 2, 2024CVE publishedPublication date reported by the CVE source.
- Apr 17, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.2.0
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- AntiSamy mXSS regression payloadsproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo