python-docx before 0.8.6 allows context-dependent attackers to conduct XML External…
Priority MEDIUM 43CWE-611Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.
Why it matters now
EPSS 0.02354 83rd percentileScored 2026-11-07
Fix Fixed python-docx (PyPI): 0.8.6
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | python-docx (PyPI) | before 0.8.6 | 0.8.6 | Patch available | GHSA-34wj-p5jm-2p96 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- python-docx (PyPI) Vendor— Affected before 0.8.6 Fixed in 0.8.6 Patch available GHSA-34wj-p5jm-2p96
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python-openxml_project:python-docx:*:*:*:*:*:*:*:* | up to 0.8.5 | Vulnerable | Python-openxml Project |
- cpe:2.3:a:python-openxml_project:python-docx:*:*:*:*:*:*:*:* Versions up to 0.8.5 Vulnerable ·Python-openxml Project
Remediation
- Fix · GHSA-34wj-p5jm-2p96 python-docx (PyPI) Fixed in 0.8.6 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2016-5851
- 2026-10-03 Alias added: GHSA-34wj-p5jm-2p96
References
Patch 2
Advisory 5
Other 8
- https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb
- https://github.com/pypa/advisory-database/tree/main/vulns/python-docx/PYSEC-2016-21.yaml
- https://github.com/python-openxml/python-docx
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ
- https://web.archive.org/web/20170214030949/http://www.securityfocus.com/bid/91485
Sources
- CVE-2016-5851 · CVE Program
- CVE-2016-5851 · NVD
- FIRST EPSS
- GHSA-34wj-p5jm-2p96 · GitHub Advisory Database · CC BY 4.0
- CVE-2016-5851 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences