Advisory

PYSEC-2026-4107

Also known as: CVE-2026-61570, GHSA-5vvx-3h34-f3gj

Summary

MPXJ: XXE Vulnerability in MerlinReader

Details

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

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-10-01 16:38 UTC
Modified
2026-10-01 17:45 UTC

Affected packages and fixes

mpxj

PyPI · All systems

Affected

  • introduced 5.5.5, fixed 16.4.1 (ecosystem)

Fixed versions

16.4.1

Fix

  • Fixed version 16.4.1
    pip install --upgrade mpxj==16.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences