weasyprint-pdf-creation

Pass

Audited by Gen Agent Trust Hub on Jun 21, 2026

Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The script scripts/build_examples.py and scripts/qa_pdf.py use subprocess.run to orchestrate the PDF generation and validation process. These calls are implemented using argument lists rather than shell strings, which is a secure practice that prevents shell injection vulnerabilities.
  • [COMMAND_EXECUTION]: The SKILL.md instructions include commands for installing native system dependencies using sudo apt-get. This is a standard and necessary step for the WeasyPrint rendering engine on Linux platforms to support font and layout libraries like Pango and HarfBuzz.
  • [SAFE]: Template rendering in scripts/render_pdf.py utilizes the Jinja2 engine with autoescape explicitly enabled. This ensures that data injected into HTML templates is properly sanitized, preventing injection attacks within the rendered documents.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 21, 2026, 01:36 PM