PyPI: xml2dict

CVE-2021-25951

Safety vulnerability ID: SFTY-20210630-34835

Safety legacy ID: pyup.io-54305

XXE vulnerability in 'XML2Dict' version 0.2.2 allows an attacker to cause a denial of service. The parse function does not properly restrict recursive entity references.

Created at: Nov 5, 2025Updated at: Nov 5, 2025

Overview

XML2Dict XML Entity Expansion Vulnerability

Advisory

XXE vulnerability in 'XML2Dict' version 0.2.2 allows an attacker to cause a denial of service. The parse function does not properly restrict recursive entity references.

Affected Package

Affecting xml2dict package, versions
>=0

Also affects

---

How to Fix

We recommend updating xml2dict to the latest non-vulnerable version.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more