{"cve":"CVE-2016-5851","nvd":{"published":"2016-12-21T22:59:00.170","modified":"2026-06-17T00:50:08.803","status":"Modified","description":"python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-611"],"references":["http://www.openwall.com/lists/oss-security/2016/06/28/7","http://www.openwall.com/lists/oss-security/2016/06/28/8","http://www.securityfocus.com/bid/91485","https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst","https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb"],"products":["python-openxml_project:python-docx"],"source":"nvd","synced_at":"2026-10-19T20:41:25.729257544+00:00"},"epss":{"cve":"CVE-2016-5851","score":0.02354,"percentile":0.83734,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-34wj-p5jm-2p96","url":"https://osv.dev/vulnerability/GHSA-34wj-p5jm-2p96","summary":"Improper Restriction of XML External Entity Reference in python-docx","modified":"2024-10-25T21:25:18.720989Z","packages":[{"ecosystem":"PyPI","name":"python-docx","purl":"pkg:pypi/python-docx","ranges":["<0.8.6"],"fixed":["0.8.6"]}]},{"id":"PYSEC-2016-21","url":"https://osv.dev/vulnerability/PYSEC-2016-21","summary":"","modified":"2023-11-08T03:58:32.000630Z","packages":[{"ecosystem":"PyPI","name":"python-docx","purl":"pkg:pypi/python-docx","ranges":["<0.8.6"],"fixed":["0.8.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}