XML Injection Affecting xmltodict package, versions [,0.15.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.07% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-XMLTODICT-12427118
  • published2 Sept 2025
  • disclosed1 Sept 2025
  • creditCamilo Vera

Introduced: 1 Sep 2025

NewCVE-2025-9375  (opens in a new tab)
CWE-91  (opens in a new tab)

How to fix?

Upgrade xmltodict to version 0.15.0 or higher.

Overview

Affected versions of this package are vulnerable to XML Injection via the content_handler.startElement() call with missing sanitization. An attacker can manipulate input data by crafting dictionary keys that inject arbitrary XML elements or break the structure of the generated XML document.

CVSS Base Scores

version 4.0
version 3.1