Skip to content

Security: wispsy/parse-docx

Security

docs/security.md

Security boundaries

DOCX is a ZIP package and can contain active, externally referenced, or resource-intensive content. parse-docx only reads selected package XML and projects document structure and ordinary text. It never executes macros or fields, fetches external relationships, opens embedded objects, renders images, or edits a document. Hyperlink targets are retained as inert strings.

Package entry names are validated and no archive member is extracted to disk. The parser rejects encrypted entries, duplicate names, excessive archive or part sizes, suspicious compression ratios, DTDs, and entity declarations. DTD and entity prohibitions are checked using the XML parser's encoding-aware declaration events before ElementTree builds the document tree; UTF-8 and UTF-16 declarations are both rejected.

The parser is not a malware scanner, sanitizer, or renderer. Treat returned text and link targets as untrusted input; apply appropriate output escaping and authorization in applications that display or use them.

There aren't any published security advisories