{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2016-5851","published":"2016-12-21T22:59:00.170000Z","last_modified":"2026-06-17T00:50:08.803000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-611"],"cpes":[{"criteria":"cpe:2.3:a:python-openxml_project:python-docx:*:*:*:*:*:*:*:*","part":"a","vendor":"python-openxml_project","product":"python-docx","version_end_including":"0.8.5"}],"cpes_truncated":false,"vendors":["python-openxml_project"],"products":["python-openxml_project/python-docx"],"epss":{"score":0.02354,"percentile":0.84462,"date":"2026-11-27","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-34wj-p5jm-2p96","ecosystem":"PyPI","name":"python-docx","purl":"pkg:pypi/python-docx","ranges":[{"introduced":"0","fixed":"0.8.6"}],"versions":["0.3.0a1","0.3.0a2","0.3.0a3","0.3.0a4","0.3.0a5","0.3.0dev1","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5"],"versions_truncated":false},{"advisory":"PYSEC-2016-21","ecosystem":"PyPI","name":"python-docx","purl":"pkg:pypi/python-docx","ranges":[{"introduced":"0","fixed":"0.8.6"}],"versions":["0.3.0a1","0.3.0a2","0.3.0a3","0.3.0a4","0.3.0a5","0.3.0dev1","0.4.0","0.5.0","0.5.1","0.5.2","0.5.3","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5"],"versions_truncated":false}],"severity":"high","priority_score":68,"links":{"html_es":"/es/cve/CVE-2016-5851/","html_en":"/en/cve/CVE-2016-5851/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-5851","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-5851"},"untrusted":{"vendor_name":"Python-openxml Project","product_name":"Python-docx","desc_en":"python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.","affected":[],"references":[{"url":"http://www.openwall.com/lists/oss-security/2016/06/28/7","tags":["Mailing List","Patch","Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2016/06/28/8","tags":["Mailing List","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/91485","tags":["Third Party Advisory","VDB Entry"]},{"url":"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst","tags":["Patch","Release Notes","Vendor Advisory"]},{"url":"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/","tags":[]}]}}