latex-pdf-compiler
Warn
Audited by Socket on Sep 18, 2026
1 alert found:
AnomalyAnomalyscripts/compile_latex.py
LOWAnomalyLOW
scripts/compile_latex.py
The code is a legitimate LaTeX compilation wrapper, not clear malware. Its main security concerns are unsafe use of the user-controlled filename, execution of untrusted LaTeX through pdflatex without a sandbox, possible file access or resource exhaustion, unintended PDF disclosure through path manipulation, and failure to clean up temporary files. Filename validation, a dedicated sandboxed worker, restricted TeX settings, resource limits, output-size limits, and guaranteed temporary-directory cleanup are recommended.
Confidence: 97%Severity: 68%
Audit Metadata