Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. python-docx
  4. ›
  5. CVE-2016-5851

CVE-2016-5851: Improper Restriction of XML External Entity Reference in python-docx

May 13, 2022 (updated October 25, 2024)

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

References

  • github.com/advisories/GHSA-34wj-p5jm-2p96
  • github.com/pypa/advisory-database/tree/main/vulns/python-docx/PYSEC-2016-21.yaml
  • github.com/python-openxml/python-docx
  • github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst
  • github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ
  • nvd.nist.gov/vuln/detail/CVE-2016-5851
  • web.archive.org/web/20170214030949/http://www.securityfocus.com/bid/91485

Code Behaviors & Features

Detect and mitigate CVE-2016-5851 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.8.6

Fixed versions

  • 0.8.6

Solution

Upgrade to version 0.8.6 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

pypi/python-docx/CVE-2016-5851.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.