GHSA-5vvx-3h34-f3gj
MPXJ: XXE Vulnerability in MerlinReader
Quick fix
GHSA-5vvx-3h34-f3gj — net.sf.mpxj:mpxj: upgrade to the fixed version with the command below.
# pom.xml: bump <version>16.4.1</version> for net.sf.mpxj:mpxjDetails
### Impact MPXJ used the default configuration when creating a DocumentBuilder instance, which leaves doctype declarations enabled, when parsing the XML content of the ZTIMEINTERVALS column from a Merlin project SQLite file. This would allow a carefully crafted XML payload to read an arbitrary file. However, although an arbitrary file can be read, the way the resulting parsed XML is processed by MPXJ means that the data it contains is unlikely to be available for exfiltration.
### Patches The patch is included in MPXJ 16.4.1
### Workarounds Potential workarounds include: * Avoid reading Merlin project files with MPXJ * Only accept Merlin project files from trusted sources * Preprocess Merlin SQLite databases to strip doctype declarations from the ZTIMEINTERVALS column
Are you affected?
Enter the version of the package you're using.
Affected packages
5.5.5Fixed in: 16.4.1# pom.xml: bump <version>16.4.1</version> for net.sf.mpxj:mpxj5.5.5Fixed in: 16.4.1dotnet add package net.sf.mpxj --version 16.4.15.5.5Fixed in: 16.4.1dotnet add package net.sf.mpxj-for-csharp --version 16.4.15.5.5Fixed in: 16.4.1dotnet add package net.sf.mpxj-for-vb --version 16.4.1