OOXML Sanitizer
Office Open XML files (Word, Excel, PowerPoint) store author, company, and custom properties inside the package. ExifTool cannot rewrite these zip-based formats, so that metadata often survives image/PDF sanitizers.
OOXML Sanitizer removes those document properties when a managed file is uploaded or replaced. No settings form: enable the module and it runs automatically.
What it strips
docProps/core.xml— creator, last modified by, and related Dublin Core fieldsdocProps/app.xml— application and company metadatadocProps/custom.xml— custom properties- Relationship entries in
_rels/.relsthat point at those parts
Supported extensions
docx, dotx, xlsx, xltx, pptx, potx
Legacy Word .doc (OLE) uploads are rejected. Save as .docx and upload that instead — the OLE format cannot be stripped the same way.
Requirements
- Drupal 10.3 or 11
- PHP 8.1+ with the
zipandmbstringextensions - File module (Drupal core)
Installation
composer require drupal/ooxml_sanitizer drush en ooxml_sanitizer -y
Limitations
This module only removes package-level document properties. It does not rewrite document body XML, comments, tracked changes, macros, or embedded files. Failed sanitization is logged on the ooxml_sanitizer watchdog channel.
Related modules
Use together with Metadata Sanitizer (ExifTool) if you also need to strip metadata from images and other formats ExifTool can write.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 10–11 | release | Sep 16, 2026 |