CVE-2025-9375

xmltodict 0.14.2 - XML Injection

Published Sep 1, 2025 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
XML Injection vulnerability in xmltodict allows Input Data Manipulation.
This issue affects xmltodict: from 0.14.2 before 0.15.1.

NOTE: the scope of this CVE is disputed by the vendor on the grounds that xmltodict.unparse() delegates element-name handling to Python's xml.sax.saxutils.XMLGenerator, and that XMLGenerator should be the component performing validation.

Analysis

AI-generated

Technical impact

xmltodict's unparse function delegates element-name handling to Python's xml.sax.saxutils.XMLGenerator, which performs no validation of element names. This flaw lets attackers inject crafted XML that can manipulate the output of unparse, potentially altering the structure or contents of data processed by downstream consumers. The issue is identified as CWE‑91 and can lead to data corruption or unintended data processing. The vulnerability is reported in versions 0.14.2 through just before 0.15.1.

Affected Systems

The vulnerability affects the xmltodict library across all supported operating systems—Linux, macOS, and Windows—for every release from 0.14.2 up to the point immediately before 0.15.1. Any application that imports xmltodict and uses the unparse facility in those versions is potentially exposed.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score is below 1 %, suggesting a low probability of exploitation in the current environment. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local access to code that calls xmltodict.unparse; there is no documented network-facing vector. The risk therefore is limited to contexts where an attacker can influence input to the unparse routine, enabling data manipulation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade xmltodict to 0.15.1 or later.
  • Audit code paths that call xmltodict.unparse and add explicit validation of element names before serialization.
  • If upgrading is infeasible, wrap XMLGenerator or implement a sanitization routine to reject or escape disallowed element names.

Generated by OpenCVE AI on April 22, 2026 at 11:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-26350 XML Injection vulnerability in xmltodict allows Input Data Manipulation. This issue affects xmltodict: from 0.14.2 before 0.15.1.
Ubuntu USN Ubuntu USN USN-7753-1 xmltodict vulnerability
History
Type Values Removed Values Added
Description XML Injection vulnerability in xmltodict allows Input Data Manipulation. This issue affects xmltodict: from 0.14.2 before 0.15.1. XML Injection vulnerability in xmltodict allows Input Data Manipulation. This issue affects xmltodict: from 0.14.2 before 0.15.1. NOTE: the scope of this CVE is disputed by the vendor on the grounds that xmltodict.unparse() delegates element-name handling to Python's xml.sax.saxutils.XMLGenerator, and that XMLGenerator should be the component performing validation.
Type Values Removed Values Added
First Time appeared Xmltodict
Xmltodict xmltodict
CPEs cpe:2.3:a:xmltodict:xmltodict:*:*:linux:*:*:*:*:*
cpe:2.3:a:xmltodict:xmltodict:*:*:macos:*:*:*:*:*
cpe:2.3:a:xmltodict:xmltodict:*:*:windows:*:*:*:*:*
Vendors & Products Xmltodict
Xmltodict xmltodict
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description XML Injection vulnerability in xmltodict allows Input Data Manipulation.This issue affects xmltodict: 0.14.2. XML Injection vulnerability in xmltodict allows Input Data Manipulation. This issue affects xmltodict: from 0.14.2 before 0.15.1.
References
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Xmltodict Project
Xmltodict Project xmltodict
Vendors & Products Xmltodict Project
Xmltodict Project xmltodict
Type Values Removed Values Added
Description XML Injection vulnerability in xmltodict allows Input Data Manipulation.This issue affects xmltodict: 0.14.2.
Title xmltodict 0.14.2 - XML Injection
Weaknesses CWE-91
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-91

    XML Injection (aka Blind XPath Injection)

Sources

Status
PUBLISHED
Assigner
Fluid Attacks
Published
Updated
Apr 20, 2026, 9:45 PM
Reserved
Aug 22, 2025, 10:03 PM
Status
Deferred
Published
Sep 1, 2025, 5:15 PM
Modified
Oct 19, 2026, 5:10 PM
Severity
Moderate
Public date
Sep 1, 2025, 4:43 PM