legal-ocr

Warn

Audited by Socket on Sep 19, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/mineru_ocr.py

No clear evidence of intentional malware in this snippet; it is primarily an integration client for MinerU document conversion. However, it creates meaningful security exposure by (1) extracting an untrusted remotely downloaded ZIP with zipfile.ZipFile.extractall() without path traversal validation (ZIP Slip risk) and (2) downloading arbitrary https?:// image URLs found in untrusted Markdown without allowlisting or robust safety controls. These issues warrant mitigation (ZIP member path validation, download domain/size restrictions, content-type checks) before use in adversarial or semi-trusted environments.

Confidence: 66%Severity: 68%
Audit Metadata
Analyzed At
Sep 19, 2026, 03:50 AM
Package URL
pkg:socket/skills-sh/cat-xierluo%2Flegal-skills%2Flegal-ocr%2F@6aec391c491afe2a8c6fe55683d5ce6ca6bef567e03c82caf481091355d8c9bd