High
Security advisory
python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-5851
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:40 UTC · Revision 1
Source evidence
python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.
osv:CVE-2016-5851
Complete source record
{
"id": "c7c4358fce272fe3957a3fdcf319b51be510bbb2b18c7dbb948f6ba9146ea7b5",
"url": "https://osv.dev/vulnerability/CVE-2016-5851",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-5851",
"summary": "python-docx before 0.8.6 allows context-dependent attackers to conduct XML External Entity (XXE) attacks via a crafted document.",
"evidence": "osv:CVE-2016-5851",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-5851",
"aliases": [
"CVE-2016-5851",
"GHSA-34wj-p5jm-2p96",
"PYSEC-2016-21"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python-openxml/python-docx",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "bc34ec95a9e7bdff01f5b43b1070bbc0c018ab25"
},
{
"fixed": "61b40b161b64173ab8e362aec1fd197948431beb"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python-openxml_project:python-docx:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.8.5"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "61b40b161b64173ab8e362aec1fd197948431beb"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.8.5",
"v0.8.4",
"v0.8.3",
"v0.8.2",
"v0.8.1",
"v0.8.0",
"v0.7.6",
"v0.7.5",
"v0.7.4",
"v0.7.3",
"v0.7.2",
"v0.7.1",
"v0.7.0",
"v0.6.0",
"v0.5.3",
"v0.5.2",
"v0.5.0",
"v0.4.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5851.json"
}
}
],
"modified": "2026-10-20T10:47:29.914617308Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6FFMOH7ZPOPQWNJGUZOS5LXX4MGNRXXT/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XU2WSYRNB7CLBBFCGSX34XHACTA2SWDZ/",
"https://github.com/python-openxml/python-docx/blob/v0.8.6/HISTORY.rst",
"https://github.com/python-openxml/python-docx/commit/61b40b161b64173ab8e362aec1fd197948431beb"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-5851",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 379436,
"published_at": "2016-12-21T22:59:00.17+00:00"
}