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.
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.
How to Fix
We recommend updating xml2dict to the latest non-vulnerable version.
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20210630-34835/CVE-2021-25951
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-25951
- https://github.com/advisories/GHSA-gp6m-vqhm-5cm5
- https://github.com/mcspring/XML2Dict/tree/master
- https://nvd.nist.gov/vuln/detail/CVE-2021-25951
- https://pypi.org/project/XML2Dict/
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25951
- https://nvd.nist.gov/vuln/detail/CVE-2021-25951
- https://github.com/mcspring/XML2Dict/tree/master
- https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25951
- https://github.com/pypa/advisory-database/tree/main/vulns/xml2dict/PYSEC-2021-349.yaml
- https://pypi.org/project/XML2Dict
- https://github.com/advisories/GHSA-gp6m-vqhm-5cm5
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
