PyPI: python

CVE-2022-48565

Safety vulnerability ID: SFTY-20230822-04184

Safety legacy ID: pyup.io-60630

Python 3.6.13, 3.7.10, 3.8.7 and 3.9.1 include a fix for CVE-2022-48565: XML External Entity vulnerability. The plistlib module no longer accepts entity declarations in XML plist files to avoid XML vulnerabilities. https://bugs.python.org/issue42051

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

Overview

Python 3.6.13, 3.7.10, 3.8.7 and 3.9.1 include a fix for CVE-2022-48565: XML External Entity vulnerability. The plistlib module no longer accepts entity declarations in XML plist files to avoid XML vulnerabilities. https://bugs.python.org/issue42051

Advisory

Python 3.6.13, 3.7.10, 3.8.7 and 3.9.1 include a fix for CVE-2022-48565: XML External Entity vulnerability. The plistlib module no longer accepts entity declarations in XML plist files to avoid XML vulnerabilities. https://bugs.python.org/issue42051

Affected Package

Affecting python package, versions
>=3.7.0a1,<3.7.10
==3.10.0a1
<3.6.13
>=3.8.0a1,<3.8.7
>=3.9.0a1,<3.9.1

Also affects

---

How to Fix

Upgrade
python
to
3.7.10
3.10.0a2
3.6.13
3.8.7
3.9.1
or higher.

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