Security mailing lists by PureSourceCode

CVE-2016-5851

HIGH 8.8CVSS 3.1

Improper Restriction of XML External Entity Reference in python-docx

python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.

Published
21 Dec 2016
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-611
Also known as
GHSA-34wj-p5jm-2p96PYSEC-2016-21
Sources
NVDJSONOSV GHSA-34wj-p5jm-2p96JSONOSV PYSEC-2016-21JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD python-openxml_project python-docx
cpe:2.3:a:python-openxml_project:python-docx:*:*:*:*:*:*:*:*
<= 0.8.5
OSV PyPI python-docx < 0.8.6 0.8.6

References

History

  • 25 Nov 2026 20:19 UTC · NVD: first stored (published 21 Dec 2016)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Dec 2016)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.