docx
Fail
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- REMOTE_CODE_EXECUTION (HIGH): The file
ooxml/scripts/unpack.pyand the validation logic inooxml/scripts/validation/docx.pyare vulnerable to 'Zip Slip' attacks. They usezipfile.extractall()without validating that the archive's file paths remain within the target directory, allowing a malicious document to overwrite sensitive system files (e.g., shell profiles) to achieve code execution.\n - Evidence:
zipfile.ZipFile(input_file).extractall(output_path)inooxml/scripts/unpack.pyandzip_ref.extractall(temp_dir)inooxml/scripts/validation/docx.py.\n- DATA_EXFILTRATION (MEDIUM): The validation logic inooxml/scripts/validation/docx.pyuseslxml.etree.parsewithout explicitly disabling external entity resolution. This creates a surface for XML External Entity (XXE) attacks, which can be used to read local files if a malicious document is processed.\n - Evidence: Multiple instances of
lxml.etree.parse(str(xml_file))inooxml/scripts/validation/docx.py.\n- COMMAND_EXECUTION (LOW): The skill invokes thesoffice(LibreOffice) binary via a subprocess to perform document validation. While the implementation uses a list-based argument structure to prevent shell injection, it introduces a dependency on external executable software.\n - Evidence:
subprocess.run(["soffice", "--headless", ...])inooxml/scripts/pack.py.\n- PROMPT_INJECTION (LOW): The skill processes untrusted Office documents (DOCX, PPTX, XLSX) which serves as an ingestion point for indirect prompt injection.\n - Ingestion points:
ooxml/scripts/unpack.pyandooxml/scripts/validation/docx.py.\n - Boundary markers: None present.\n
- Capability inventory: Unrestricted file system write access via
extractall, subprocess execution viasoffice.\n - Sanitization: Inconsistent;
defusedxmlis used in some formatting scripts, but the core validation logic uses standardlxmlwithout security hardening.
Recommendations
- AI detected serious security threats
Audit Metadata