HtmlUnit htmlunit-neko
HtmlUnit Neko: Mutation XSS (mXSS) in HTMLWriterFilter - TEXTAREA/TITLE entity decode without re-encode
HtmlUnit Neko is an HtmlUnit adaptation of NekoHTML. Prior to 5.4.0, HTMLWriterFilter writes decoded TEXTAREA and TITLE character content without entity encoding because both elements are treated as special content. During a parse-and-serialize round trip, entity references inside these escapable raw-text elements are decoded by the parser and then emitted as raw markup by printCharacters(), changing the document's semantics. Applications that use htmlunit-neko in an HTML sanitizer, content filter, or other parse-transform-serialize pipeline can therefore turn attacker-controlled encoded text into executable markup when the output is rendered by a browser. This issue is fixed in version 5.4.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.4.0
Fixed in 5.4.0
Mitigation
Upgrade htmlunit-neko to 5.4.0 or later.
References
- Vendor advisory github.com/HtmlUnit/htmlunit-neko/security/adv…
- Patch github.com/HtmlUnit/htmlunit-neko/commit/c1658…
- Release notes github.com/HtmlUnit/htmlunit-neko/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.