docx

Warn

Audited by Socket on Aug 6, 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 contains a high-risk native-code injection pattern: it can dynamically write C code, compile it with gcc at runtime, and preload the resulting shared object into the LibreOffice (soffice) process via LD_PRELOAD. While the apparent intent may be compatibility around UNIX socket behavior, the mechanism is also a common substrate for malicious runtime sabotage. The snippet does not include the actual value of _SHIM_SOURCE, so the specific payload behavior cannot be confirmed as benign; therefore, the safest assessment is that the code should undergo manual review of the full shim source, and runtime behavior validation in an isolated environment before use.

Confidence: 62%Severity: 78%
Audit Metadata
Analyzed At
Aug 6, 2026, 04:54 PM
Package URL
pkg:socket/skills-sh/marcioaltoe%2Fskills%2Fdocx%2F@e539ec0027a639516d6e61c14c4fbbbc1064a2d9f4283766c265cbd569e806fe
Security Audit — socket — docx