{"api_version":"1","generated_at":"2026-07-23T10:14:24+00:00","cve":"CVE-2016-5851","urls":{"html":"https://cve.report/CVE-2016-5851","api":"https://cve.report/api/cve/CVE-2016-5851.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-5851","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-5851"},"summary":{"title":"CVE-2016-5851","description":"python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.","state":"PUBLISHED","assigner":"mitre","published_at":"2016-12-21 22:59:00","updated_at":"2026-05-06 22:30:45"},"problem_types":["CWE-611","n/a"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","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","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.8","severity":"","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst","name":"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Release Notes","Vendor Advisory"],"title":"python-docx/HISTORY.rst at v0.8.6 · python-openxml/python-docx · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb","name":"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 33 Update: python-docx-0.8.11-3.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2016/06/28/8","name":"http://www.openwall.com/lists/oss-security/2016/06/28/8","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Third Party Advisory"],"title":"oss-security - Re: CVE request - python-docx 0.8.5 - XXE","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2016/06/28/7","name":"http://www.openwall.com/lists/oss-security/2016/06/28/7","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List","Patch","Third Party Advisory"],"title":"oss-security - CVE request - python-docx 0.8.5 - XXE","mime":"text/x-python","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/91485","name":"http://www.securityfocus.com/bid/91485","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Third Party Advisory","VDB Entry"],"title":"python-docx CVE-2016-5851 XML External Entity Injection Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 34 Update: python-docx-0.8.11-3.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/","name":"FEDORA:FEDORA-2021-aa54748cd9","refsource":"MITRE","tags":[],"title":"[SECURITY] Fedora 33 Update: python-docx-0.8.11-3.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/","name":"FEDORA:FEDORA-2021-aa6ebc01be","refsource":"MITRE","tags":[],"title":"[SECURITY] Fedora 34 Update: python-docx-0.8.11-3.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-5851","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5851","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"5851","vulnerable":"1","versionEndIncluding":"0.8.5","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"python-openxml_project","cpe5":"python-docx","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2016","cve_id":"5851","cve":"CVE-2016-5851","epss":"0.008990000","percentile":"0.757860000","score_date":"2026-05-11","updated_at":"2026-05-12 00:01:19"},"legacy_qids":[{"cve":"CVE-2016-5851","qid":"281826","title":"Fedora Security Update for python (FEDORA-2021-aa54748cd9)"},{"cve":"CVE-2016-5851","qid":"281827","title":"Fedora Security Update for python (FEDORA-2021-aa6ebc01be)"}]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T01:15:10.802Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"[oss-security] 20160628 CVE request - python-docx 0.8.5 - XXE","tags":["mailing-list","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2016/06/28/7"},{"name":"[oss-security] 20160628 Re: CVE request - python-docx 0.8.5 - XXE","tags":["mailing-list","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2016/06/28/8"},{"tags":["x_transferred"],"url":"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst"},{"name":"91485","tags":["vdb-entry","x_transferred"],"url":"http://www.securityfocus.com/bid/91485"},{"name":"FEDORA-2021-aa54748cd9","tags":["vendor-advisory","x_transferred"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/"},{"name":"FEDORA-2021-aa6ebc01be","tags":["vendor-advisory","x_transferred"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/"},{"tags":["x_transferred"],"url":"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2016-06-22T00:00:00.000Z","descriptions":[{"lang":"en","value":"python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2023-12-07T21:51:56.834Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"[oss-security] 20160628 CVE request - python-docx 0.8.5 - XXE","tags":["mailing-list"],"url":"http://www.openwall.com/lists/oss-security/2016/06/28/7"},{"name":"[oss-security] 20160628 Re: CVE request - python-docx 0.8.5 - XXE","tags":["mailing-list"],"url":"http://www.openwall.com/lists/oss-security/2016/06/28/8"},{"url":"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst"},{"name":"91485","tags":["vdb-entry"],"url":"http://www.securityfocus.com/bid/91485"},{"name":"FEDORA-2021-aa54748cd9","tags":["vendor-advisory"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/"},{"name":"FEDORA-2021-aa6ebc01be","tags":["vendor-advisory"],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/"},{"url":"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb"}]}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2016-5851","datePublished":"2016-12-21T00:00:00.000Z","dateReserved":"2016-06-28T00:00:00.000Z","dateUpdated":"2024-08-06T01:15:10.802Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2016-12-21 22:59:00","lastModifiedDate":"2026-05-06 22:30:45","problem_types":["CWE-611","n/a"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:python-openxml_project:python-docx:*:*:*:*:*:*:*:*","versionEndIncluding":"0.8.5","matchCriteriaId":"9E572AB2-F976-4053-8081-C7F87D759398"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"5851","Ordinal":"1","Title":"CVE-2016-5851","CVE":"CVE-2016-5851","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"5851","Ordinal":"1","NoteData":"python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.","Type":"Description","Title":"CVE-2016-5851"},{"CveYear":"2016","CveId":"5851","Ordinal":"2","NoteData":"2016-12-21","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"5851","Ordinal":"3","NoteData":"2021-08-18","Type":"Other","Title":"Modified"}]}}}