CVE-2026-104828

HtmlUnit Neko: Mutation XSS (mXSS) in HTMLWriterFilter - TEXTAREA/TITLE entity decode without re-encode

Published Oct 15, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

HtmlUnit Neko’s HTMLWriterFilter emits decoded CONTENT for TEXTAREA and TITLE elements without re‑encoding. When input containing encoded entity references is parsed and then re‑serialized, those entities are turned into raw markup, changing the document’s semantics. An attacker can supply encoded text that is later rendered as executable code, enabling cross‑site scripting in any application that uses htmlunit‑neko to sanitize or transform HTML.

Affected Systems

The vulnerability exists in HtmlUnit:htmlunit‑neko versions prior to 5.4.0. All releases of the library before the 5.4.0 tag are affected.

Risk and Exploitability

The CVSS score of 7.2 indicates a high‑severity risk. Although the EPSS score is reported as < 1% and the vulnerability is not listed in the CISA KEV catalog, exploitation is possible in environments where untrusted input is processed by the library and then output to a browser. The likely attack path involves an attacker supplying encoded payloads that the library decodes and re‑serializes, turning them into executable markup. Proper patching or mitigation is therefore recommended to prevent XSS.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest release of htmlunit‑neko (5.4.0 or later) to address the XSS flaw.
  • If an immediate update is not possible, add a post‑serialization filter that encodes dangerous characters in TEXTAREA and TITLE elements before output to browsers.
  • Ensure that htmlunit‑neko is not used as a primary sanitizer for user‑supplied content until the fix is applied, and validate all input through additional security controls.

Generated by OpenCVE AI on October 16, 2026 at 17:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Htmlunit
Htmlunit htmlunit-neko
Vendors & Products Htmlunit
Htmlunit htmlunit-neko
Type Values Removed Values Added
Title HtmlUnit: Mutation XSS (mXSS) in HTMLWriterFilter - TEXTAREA/TITLE entity decode without re-encode HtmlUnit Neko: Mutation XSS (mXSS) in HTMLWriterFilter - TEXTAREA/TITLE entity decode without re-encode
Type Values Removed Values Added
Description 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.
Title HtmlUnit: Mutation XSS (mXSS) in HTMLWriterFilter - TEXTAREA/TITLE entity decode without re-encode
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 21, 2026, 1:04 AM
Reserved
Oct 2, 2026, 2:17 PM
Status
Deferred
Published
Oct 15, 2026, 7:17 PM
Modified
Oct 21, 2026, 1:17 AM