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

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-15T18:36:49.613Z
- Modified: 2026-10-21T01:17:19.770Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- HtmlUnit htmlunit-neko: < 5.4.0

## References

- <https://github.com/HtmlUnit/htmlunit-neko/security/advisories/GHSA-39xg-prhf-8785> (exploit)
- <https://github.com/HtmlUnit/htmlunit-neko/commit/c165891e0753aef3e05f5daa6250d3e8d4ada3c0>
- <https://github.com/HtmlUnit/htmlunit-neko/releases/tag/5.4.0>

## Sources

- CVE List: [CVE-2026-104828](https://www.cve.org/CVERecord?id=CVE-2026-104828), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-104828](https://nvd.nist.gov/vuln/detail/CVE-2026-104828), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-104828 · Whole record: https://cve.day/CVE-2026-104828.json · Rebuilt by cve.day 2026-11-25T22:59:44.920Z
