Improper Restriction of XML External Entity Reference in Openpyxl
Openpyxl 2.4.1 resolves external entities by default, which allows remote attackers to conduct XXE attacks via a crafted .xlsx document.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | openpyxl | < 2.4.2 | 2.4.2 |
References
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854442
- https://bitbucket.org/openpyxl/openpyxl/issues/749
- https://bitbucket.org/openpyxl/openpyxl/commits/3b4905f428e1
- http://www.openwall.com/lists/oss-security/2017/02/07/5
- https://github.com/advisories/GHSA-chqf-hx79-gxc6
- https://nvd.nist.gov/vuln/detail/CVE-2017-5992
- https://foss.heptapod.net/openpyxl/openpyxl
- https://foss.heptapod.net/openpyxl/openpyxl/-/commit/7fe678fd89fd
- https://foss.heptapod.net/openpyxl/openpyxl/-/issues/749
- https://github.com/pypa/advisory-database/tree/main/vulns/openpyxl/PYSEC-2017-48.yaml
- CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:H- Weakness (CWE)
CWE-611- Platform
- Python (PyPI)
- Package
openpyxl- Disclosed
- 15.02.2017
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2017-48 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-chqf-hx79-gxc6 - CC BY 4.0
Vulnerability history: openpyxl
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.