Skip to main content

libexpat (Expat) CVE-2026-93990

| EUVDEUVD-2026-83618 HIGH
Improper Handling of Unicode Encoding (CWE-176)
2026-09-19 VulnCheck GHSA-rfp9-ffqc-h4x8
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint parsing untrusted UTF-16 XML
  2. Delivery
    Craft UTF-16 XML with lone high surrogate
  3. Exploit
    Surrogate consumes following markup code unit
  4. Execution
    Malicious markup hidden from tokenizer
  5. Impact
    XML injection alters parsed document structure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Unicode normalization
Exploitation Conditions

Requires the application to parse UTF-16-encoded XML (little- or big-endian) from an untrusted source using Expat through 2.8.4; the default and dominant UTF-8 input path is not affected, so applications that only accept UTF-8 are not exploitable. The attacker must place a high surrogate not followed by a valid low surrogate immediately before a markup character so the malformed pair consumes that character and hides it from the tokenizer. Realistic impact additionally depends on a downstream trust or validation decision that relies on the parsed structure (e.g. a filter or sanitizer that sees different markup than Expat does); without such a boundary the smuggling has limited security effect. No authentication or user interaction is required (PR:N/UI:N), but the UTF-16 input requirement is the primary limiting factor.

Impact

Signals are mixed and point to a real-but-conditional integrity flaw rather than a mass-exploitation emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N) yields 8.7 and correctly encodes an integrity-only impact: no confidentiality or availability loss, network-reachable, no privileges or user interaction. That framing is consistent with the CWE-176 (improper Unicode encoding handling) root cause - a lone high surrogate consuming the following code unit and hiding markup (e.g. '<') from the tokenizer, i.e. XML injection / markup smuggling, not memory corruption or code execution. Critically, exploitability is gated by a precondition the CVSS vector does NOT capture: the target application must parse UTF-16-encoded XML from untrusted input, which is far less common than UTF-8 in real-world XML flows, so AC:L slightly understates practical difficulty. No EPSS score, no CISA KEV listing, and no standalone weaponized exploit are present in the provided data - although the vendor patch (PR #1282) ships reproducer test cases (test_utf16_surrogate_pairs) that demonstrate the behavior. Net: prioritize patching where UTF-16 XML from untrusted sources is parsed and downstream trust decisions depend on parsed structure; deprioritize elsewhere. This is a legitimate high-integrity issue in a ubiquitous library, but not a high-CVSS-yet-hollow item nor a confirmed in-the-wild threat.

Exploit ScenarioDerived

An attacker submits UTF-16-encoded XML to a service that uses Expat (through 2.8.4) for parsing, embedding a lone high surrogate positioned so it swallows the code unit of a following markup character, causing a '<' or attribute boundary to be hidden from the tokenizer. The parser then interprets the document differently than a validating/filtering layer expected, enabling XML injection to smuggle elements or bypass content checks. No public weaponized exploit is identified, though the vendor's fix includes reproducer test cases demonstrating the malformed-surrogate acceptance.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 19, 2026

Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high surrogate paired with the following code unit is accepted as a valid surrogate pair, so a character such as '<' is consumed as part of the pair and never tokenized. Only applications that parse UTF-16-encoded XML (little- or big-endian) from an untrusted source are affected - the dominant UTF-8 input path is not exploitable - and meaningful integrity impact additionally requires a downstream filter, sanitizer, or validator that trusts the parsed structure and therefore sees different markup than Expat exposes. No public exploit has been identified at time of analysis; an upstream fix is available in the Expat repository (PR #1282, commit ff6e1d7e750bbe245178f51a47a965dc8342861a), reported via VulnCheck.

RemediationAI

Apply the upstream fix: patch to the Expat revision containing PR #1282 / commit ff6e1d7e750bbe245178f51a47a965dc8342861a, which adds strict high-surrogate/low-surrogate validation in both the UTF-16LE and UTF-16BE tokenizers (legacy note: patch status is 'Available from vendor' via GitHub, so a tagged release version beyond 2.8.4 is not independently confirmed here - track the libexpat release notes before asserting a fixed version string). If immediate upgrade is impossible, the most effective compensating control is to reject UTF-16 request bodies at the ingress layer or transcode them to strict, well-formed UTF-8 with a validating decoder before Expat ever sees them; this eliminates the attack path but breaks clients that legitimately submit UTF-16 XML, so it should be scoped to endpoints that do not require that encoding. Do not rely on Expat's parsed structure as the sole basis for security decisions: run any downstream filter, sanitizer, or authorization check against the same normalized representation the application actually acts on, since the whole value of this flaw is that a filter sees different markup than the parser exposes. Libraries built with XML_MIN_SIZE are equally affected and must be rebuilt with the patched source, not merely relinked. Because no public exploit code is known, intrusive detection signatures are unlikely to be effective; prefer strict encoding enforcement and input-origin allowlisting while the patch is rolled out. References: https://github.com/libexpat/libexpat/pull/1282, https://github.com/libexpat/libexpat/commit/ff6e1d7e750bbe245178f51a47a965dc8342861a, and https://www.vulncheck.com/advisories/expat-through-2.8.4-malformed-utf-16-acceptance-via-unchecked-surrogate.

Affected VersionsENISA

libexpat 0 ≤2.8.4

Affected Packages

euvd libexpat no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Root cause is CWE-176 (Improper Handling of Unicode Encoding) in Expat's UTF-16 tokenizer. In a UTF-16 stream, code points above U+FFFF are represented as a surrogate pair: a high surrogate (U+D800-U+DBFF) must be immediately followed by a low surrogate (U+DC00-U+DFFF). Expat's shared tokenizer classified a high surrogate as BT_LEAD4 and then read the following code unit as the second half of the pair without verifying that it was actually a low surrogate. Because the invalid pair consumed two code units, the byte representing an ASCII markup character immediately after the lone high surrogate was absorbed into the multi-byte character and never examined, effectively hiding that character from the parser's markup detection. The upstream fix adds an isInvalid4 hook (little2_isInvalid4 / big2_isInvalid4) and macros LITTLE2_IS_INVALID_CHAR and BIG2_IS_INVALID_CHAR that reject a 4-byte pair unless the second unit's high byte masked with 0xFC equals 0xDC (i.e. U+DC00-U+DFFF). For the XML_MIN_SIZE build, where the tokenizer dispatches through the encoding vtable, a new UTF16_NULL_VTABLE(E) macro installs the real isInvalid4 so the check is not optimized away; the regular build inlines the same test via IS_INVALID_CHAR. The CPE cpe:2.3:a:libexpat:libexpat:*:*:*:*:*:*:*:* indicates all released libexpat versions at or below the affected 2.8.4 line. Any application embedding Expat and accepting UTF-16 XML inherits the flaw, and the integrity-only nature of the issue (parsed structure diverges from the real markup) makes it a classic parser-differential / markup-smuggling primitive rather than direct memory corruption.

Know when Xml gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable, unauthenticated malformed UTF-16 XML yields markup smuggling/injection: integrity-only (I:H), with no confidentiality or availability impact and no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Red Hat 7.5 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-176 (Improper Handling of Unicode Encoding), in expat/lib/xmltok.c for the UTF-16 encodings (little2, big2, and their internal and ns variants).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A decoding flaw in libexpat (through version 2.8.4), an XML parsing library embedded in a very large number of products, lets a remote attacker conceal XML markup from the parser when an application processes UTF-16 encoded XML from an untrusted source. The practical risk is that downstream filters, sanitizers, or validators which trust the parsed structure see different content than the parser does, so security controls that depend on XML integrity could be quietly bypassed. No public exploit has been identified at time of analysis and the dominant UTF-8 parsing path is not affected, so exposure is limited to teams whose products or third-party components accept UTF-16 XML from external parties.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 72% exploitable
Prevalence
Ubiquitous
Expat is the most widely embedded XML parser (Python, browsers, countless apps)
Social Media
3
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Liberty Linux 10 Fixed
SUSE Liberty Linux 8 Fixed
SUSE Liberty Linux 9 Fixed
openSUSE Tumbleweed Fixed
SLES15-SP5-CHOST-BYOS-SAP-CCloud Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy