KeygraphLabs · CVE MCP

CVE-2016-5851 · mitre

CVE-2016-5851

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

Published 2016-12-21, last changed 2026-06-17. Weakness: CWE-611.

CVSS
8.8
high, from NVD
EPSS
2.35%
percentile 84.3%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: python-docx 0.8.6 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in python-openxml/python-docx by 61b40b161b. The fix changed source code, but no function could be located in it. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2016-12-21Published
2016-12-21Package advisory PYSEC-2016-21
2022-05-13Package advisory GHSA-34wj-p5jm-2p96
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 2.35%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-34wj-p5jm-2p96python-docx (PyPI)0.8.6
PYSEC-2016-21python-docx (PyPI)0.8.6

Also known as: GHSA-34wj-p5jm-2p96, PYSEC-2016-21

Related

CVEPublishedCVSSSummary
CVE-2026-1230292026-11-057.5same weakness (CWE-611) from the same CNA (mitre)
CVE-2026-795722026-09-087.5same weakness (CWE-611) from the same CNA (mitre)
CVE-2026-507822026-07-297.5same weakness (CWE-611) from the same CNA (mitre)
CVE-2026-510802026-07-179.8same weakness (CWE-611) from the same CNA (mitre)
CVE-2026-390532026-05-156.5same weakness (CWE-611) from the same CNA (mitre)
CVE-2023-423462026-05-087.5same weakness (CWE-611) from the same CNA (mitre)
CVE-2023-423442026-05-087.3same weakness (CWE-611) from the same CNA (mitre)
CVE-2026-384292026-05-059.8same weakness (CWE-611) from the same CNA (mitre)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2016-5851, or call /api/v1/vulnerabilities/CVE-2016-5851. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org