HtmlSanitizer before 9.2.1039 XSS via SanitizeDom Body and HTML Attributes
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 9.2.1039, 10.0.1037-beta
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
HtmlSanitizer, a .NET library used to clean untrusted HTML, is affected by a cross-site scripting flaw. Attackers can inject event-handler attributes such as onload through extra html or body tags, which can run malicious scripts in a user's browser when applications display the sanitized output.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
HtmlSanitizer before 9.2.1039 and 10.0 prereleases before 10.0.1037-beta contains a cross-site scripting vulnerability because SanitizeDom(string) never sanitizes attributes on the html and body wrapper elements. Attackers can supply input with a second body or html tag carrying event handlers like onload, executing script when applications render serialized document or body outer HTML.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- HtmlSanitizer
fixed in 9.2.1039; From 10.0.0-beta · fixed in 10.0.1037-beta