Install
python-docx
Create, read, and update Microsoft Word .docx files.
1.2.0Latest, 16 Jun 2025
15MDownloads, last month
0Advisories on the latest
2Advisories, all versions
MITLicence
5.8KStars
2.6/10OpenSSF Scorecard
Source · Homepage · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | Improper Restriction of XML External Entity Reference in python-docx CVE-2016-5851 | Fixed in 0.8.6 | 13 May 2022 |
| PYSEC-2016-21 CVE-2016-5851 | Fixed in 0.8.6 | 21 Dec 2016 |
In the news
- Python-docx: How to force a new page when adding tables with images? stackoverflow.com, 11 Mar 2025
- How to edit/change every hyperlink in a word document with python-docx or some other library? stackoverflow.com, 3 Feb 2025
- python-docx extract table in word stackoverflow.com, 21 Jan 2025
- Automating Word Document Creation with Python and FastAPI (Using python-docx-template) dev.to, 7 Jan 2025
- how to set color to value in python-docx table? stackoverflow.com, 1 Jan 2025
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.