Description
Expat through 2.8.4 fails to validate low surrogates following high surrogates in UTF-16 input, allowing malformed UTF-16 sequences to be accepted. Attackers can craft UTF-16 encoded XML with lone high surrogates that consume following code units, hiding markup characters from the parser and enabling XML injection attacks.
Severity (CVSS)
| Base score | 8.7 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-176 — Improper Handling of Unicode Encoding
Affected products
| Vendor | Product | Versions |
|---|---|---|
| libexpat | libexpat | 0 to <=2.8.4 |
References
- https://github.com/libexpat/libexpat/pull/1282 (issue-tracking patch)
- https://github.com/libexpat/libexpat/commit/ff6e1d7e750bbe245178f51a47a965dc8342861a (patch)
- https://github.com/libexpat/libexpat (product)
- https://www.vulncheck.com/advisories/expat-through-2.8.4-malformed-utf-16-acceptance-via-unchecked-surrogate (third-party-advisory)
Generated from the official CVE List on 20 Sep 2026 07:01 UTC.