libexpat through 2.10.0 Isolated High Surrogate via UTF-16 Conversion
- State
- Published
- Severity
- 6.3 Medium
- Published
- Nov 22, 2026
- Updated
- Nov 23, 2026
- Reserved
- Nov 22, 2026
Description
libexpat through 2.10.0 contains an improper Unicode handling vulnerability in DEFINE_UTF16_TO_UTF16 conversion functions in xmltok.c that can split valid surrogate pairs when output space is limited. In XML_UNICODE builds parsing non-native byte order UTF-16 input, attackers can supply crafted documents that deliver lone high surrogates to character data and default handlers.
| Product | Versions |
|---|---|
| libexpat libexpat | 2.10.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.3 Medium | VulnCheck | |
| 3.1 | 3.7 Low | VulnCheck |
Weaknesses
- CWE-176 Improper Handling of Unicode Encoding
References
- https://github.com/libexpat/libexpat/pull/1519Issue TrackerPatch
- https://github.com/libexpat/libexpat/commit/702389c818cb402f2423fa998fa11907d621959fPatch
- https://github.com/libexpat/libexpat/blob/R_2_10_0/expat/lib/xmltok.cTechnical Details
- VulnCheck Advisory: libexpat through 2.10.0 Isolated High Surrogate via UTF-16 ConversionThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.