docx

Warn

Audited by Socket on Oct 17, 2026

2 alerts found:

Securityx2
SecurityMEDIUM
scripts/accept_changes.py

This module is a document-processing utility that performs headless LibreOffice execution by installing and running a LibreOffice Basic macro from a runtime-writable profile in /tmp. The wrapper itself shows no network access or credential theft, but it provides a strong code-execution primitive (macro write + macro execution via UNO script). Because the macro payload (ACCEPT_CHANGES_MACRO) is not present in the provided fragment, its behavior cannot be verified; if that payload were malicious or tampered, the impact could be substantial within the LibreOffice execution context. Additionally, timeout handling may misreport success, which can undermine output integrity.

Confidence: 45%Severity: 70%
SecurityMEDIUM
scripts/office/soffice.py

This module is primarily a LibreOffice launcher that adds a temporary profile and environment modifications, but it also contains a high-risk optional pathway: it can write C source, compile a native shared library with gcc, and inject it into the soffice process via LD_PRELOAD. While no direct exfiltration is visible in the Python, the native shim content (missing/truncated in the snippet) is critical; until verified, this represents a substantial supply-chain security risk due to the ability to execute arbitrary native code within the soffice process context.

Confidence: 62%Severity: 86%
Audit Metadata
Analyzed At
Oct 17, 2026, 01:26 AM
Package URL
pkg:socket/skills-sh/lev-os%2Fagents%2Fdocx%2F@f93575a55e96c836d636e222c7f1e23d7d2f20b1d5e5b94b3058a8b245802270