libexpat 2.11.0 fixes overread, xmlwf symlink attack, UTF-16 flaw
The Expat XML parser release also restores a compiler flag after known aliasing violations risked miscompilation.
libexpat 2.11.0, released by maintainer Sebastian Pipping, fixes three vulnerabilities in the widely embedded XML parser and in its xmlwf command-line tool.
CVE-2026-124317 is an overread in the unknown-encoding decoder. Only applications that install a custom unknown-encoding handler are affected.
CVE-2026-128241 is a symlink attack in xmlwf when it is told to write output into a directory other users can write, such as a shared temporary directory. Depending on whether the XML being parsed was well formed, an attacker could truncate or overwrite the file a symlink pointed at.
CVE-2026-134703 concerns malformed UTF-16 that ends in an isolated high surrogate. Expat could hand that text to an application's character-data or default handler, and the damage then depended on what that handler did with it. Applications are entitled to expect Expat never to deliver isolated surrogates. Pipping noted the flaw is in the same family as earlier issues tracked as CVE-2026-93990 and CVE-2022-25235.
The release also puts -fno-strict-aliasing back into both build systems and recommends it for anyone embedding libexpat. Known strict-aliasing violations in the library are not reliably caught by GCC's aliasing warnings and are difficult to remove cleanly. Without the flag, optimizing builds can miscompile that code. Pipping said the change matters in particular for Clang 20 and later, which by default emits distinct type-based alias analysis tags for incompatible pointers and can silently change the behavior of code that violates the aliasing rules.