Live threats

All CVEs / Python-openxml Project

CVE-2016-5851Python-openxml Project Python-docx

High 8.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-docx.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
python-openxml_projectpython-docx≤ 0.8.5

Official sources

References

Links published by the sources. Open them with care.