All CVEs / Python-openxml Project
CVE-2016-5851Python-openxml Project Python-docx
High 8.8 No auth needed
Follow: this CVE · Python-openxml Project · Python-openxml Project Python-docx We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 2.4% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Dec 21, 2016
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.
What to do
- Apply the vendor's security update for Python-docx.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | python-docx |
< 0.8.6 |
0.8.6 |
pip install "python-docx>=0.8.6" |
| PyPI | python-docx |
< 0.8.6 |
0.8.6 |
pip install "python-docx>=0.8.6" |
Per OSV / GitHub Advisories (GHSA-34wj-p5jm-2p96, PYSEC-2016-21). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python-openxml_project | python-docx | ≤ 0.8.5 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Patch Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.securityfocus.com Third Party Advisory VDB Entry
- github.com Patch Release Notes Vendor Advisory
- github.com
- lists.fedoraproject.org
- lists.fedoraproject.org