XML injection in xmltodict - CVE-2025-9375
Published: September 18, 2025
xmltodict
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation when processing XML data. A remote unauthenticated attacker can pass specially crafted XML data to the application and perform arbitrary actions on the system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
How to mitigate CVE-2025-9375
Sources
- https://github.com/martinblech/xmltodict/blob/v0.15.1/CHANGELOG.md
- https://github.com/martinblech/xmltodict/commit/f98c90f071228ed73df997807298e1df4f790c33
- https://docs.python.org/3/library/xml.sax.utils.html#xml.sax.saxutils.XMLGenerator
- https://docs.python.org/3/library/xml.sax.utils.html#xml.sax.saxutils.escape
- https://github.com/martinblech/xmltodict/issues/377#issuecomment-3255691923