CVE-2026-128241
libexpat xmlwf through 2.10.0 Symlink Following via -d Output Directory
Description
The xmlwf tool in libexpat through 2.10.0 contains a symlink following vulnerability because -d output mode opens files with fopen("wb"), which follows symbolic links. Local attackers with write access to the output directory can plant a symlink at the expected output name to truncate or overwrite files writable by the xmlwf user.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.viliussutkus89.licenseOnly » libexpatpreliminary | <= 2.10.0 | - |
Blast radius
50% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2 |
| 2 hops | 6 |
Most used dependents
- com.viliussutkus89.licenseOnly » pdf2htmlEX-dependency-tree1 usages
- com.viliussutkus89 » pdf2htmlex-android0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128241.json
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-128241
- Advisoryhttps://www.vulncheck.com/advisories/libexpat-xmlwf-through-2.10.0-symlink-following-via-d-output-directory
- Fixhttps://github.com/libexpat/libexpat/pull/1502
- Packagehttps://github.com/libexpat/libexpat
- Articlehttps://github.com/libexpat/libexpat/blob/R_2_10_0/expat/xmlwf/xmlwf.c#L1272-L1275
- Articlehttps://github.com/libexpat/libexpat/blob/R_2_10_0/expat/xmlwf/xmlwf.c#L1338-L1347
