Home › News › Vulnerabilities
libexpat 2.11.0 Fixes Three Flaws, Including a Symlink Issue in xmlwf
According to an oss-security post, libexpat 2.11.0 fixes three vulnerabilities, one allowing symlink attacks against the xmlwf tool's directory mode and two involving decoder and Unicode handling. The release also restores a compiler flag the project recommends for builds.
VulnerabilitiesKey points
- libexpat 2.11.0 fixes three CVEs, one of which allows symlink-based overwrite or truncation via xmlwf -d
- The xmlwf risk is greatest where output directories are writable by other users, such as /tmp
- The release restores -fno-strict-aliasing for GCC and Clang 20+, which the project recommends for embedding projects
- No severity scores or evidence of active exploitation are given in the report
According to the oss-security mailing list, where Sebastian announced it, libexpat 2.11.0 (also called Expat 2.11.0) was released on November 23, 2026 and fixes three vulnerabilities. The original post links to NVD entries for all three CVEs, the full change log, and a blog post about the release.
The three issues
CVE-2026-124317 is an out-of-bounds read in the decoder for unknown character encodings. According to the report, it only affects applications that set a custom unknown-encoding handler.
CVE-2026-128241 is a symlink-following flaw in the xmlwf command-line tool when run in directory mode. NVD says that the -d output mode opens files with fopen("wb"), which follows symbolic links, and lists libexpat through 2.10.0 as affected. Per the report, a local user with write access to the output directory could place a symlink at the expected output name and truncate or overwrite files writable by the xmlwf user. The attack works where the target directory is writable by other users, such as /tmp. The result depends on whether the XML being parsed is well-formed.
CVE-2026-134703 involves malformed UTF-16 input ending in isolated high surrogates. NVD describes it as a Unicode handling problem in the DEFINEUTF16TOUTF16 conversion functions in xmltok.c, affecting XMLUNICODE builds that parse non-native byte order UTF-16 input. Such input can deliver lone high surrogates to character data and default handlers. The effect depends on where the text appears and on the application's handler code. Expat says applications should be able to expect text free of isolated surrogates, and the author compares this issue to CVE-2026-93990 and CVE-2022-25235.
Compiler flag change
Release 2.11.0 restores the -fno-strict-aliasing flag in both build systems for GCC and for Clang 20 and later. The project recommends it, especially for projects that embed libexpat. The change responds to known strict aliasing violations that GCC does not flag even with -Wstrict-aliasing=3, which could risk miscompilation at -O2, -O3 or -Os without the flag. According to the project, libexpat remains clean under -Wstrict-aliasing=3 and continues to reject violations through its continuous integration checks.
What is not stated
The report gives no severity scores and does not say whether any of the three issues is being actively exploited. It also does not mention proof-of-concept code. The fixes correspond to GitHub pull requests 1492, 1502, 1519 and 1495, but the report does not map each pull request to a specific CVE.
What to do
- Upgrade libexpat to 2.11.0 or later, as the release fixes all three issues
- Avoid running xmlwf in directory mode against output directories writable by other users
- Check whether your applications set a custom unknown-encoding handler, since CVE-2026-124317 affects only those
- For projects embedding libexpat, use the -fno-strict-aliasing flag the project recommends when building with GCC or Clang 20+
Original report
“libexpat 2.11.0 fixes three vulnerabilities”
Posted by Sebastian Pipping on Nov 23 Hello oss-security, just a quick note that libexpat 2.11.0 (or "Expat 2.11.0") released today is fixing three vulnerabilities: - CVE-2026-124317 - CVE-2026-128241 - CVE-2026-134703 The related part of the change log is this: #1492 CVE-2026-124317 -- Fix overread in unknown encoding decoder It needs use of `XML_SetUnknownEncodingHandler` to be affected. #1502…
Also reported by
- oss-security: Re: libexpat 2.11.0 fixes three vulnerabilities
- oss-security: Re: libexpat 2.11.0 fixes three vulnerabilities
- oss-security: Re: libexpat 2.11.0 fixes three vulnerabilities
- oss-security: Re: libexpat 2.11.0 fixes three vulnerabilities
- oss-security: Re: libexpat 2.11.0 fixes three vulnerabilities
- oss-security: RE: libexpat 2.11.0 fixes three vulnerabilities
Vulnerabilities mentioned
- CVE-2026-124317 Medium
- CVE-2026-128241 — libexpat project libexpat Medium
- CVE-2026-134703 — libexpat Medium