markdown-to-pdf

Pass

Audited by Gen Agent Trust Hub on Sep 20, 2026

Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-supplied Markdown files and converts them to PDF using HTML as an intermediate format.
  • Ingestion points: scripts/convert.py reads content from Markdown files provided by the user or an external source.
  • Boundary markers: None. The content is processed without delimiting untrusted data from the conversion logic.
  • Capability inventory: The skill uses pdfkit (wrapping wkhtmltopdf) which has the capability to read local files and execute system commands.
  • Sanitization: None. The Markdown parser uses the extra extension, which allows raw HTML. The PDF generation configuration in scripts/convert.py explicitly sets 'enable-local-file-access': ''. This combination allows an attacker to craft a Markdown file with HTML tags (e.g., <img src="/etc/passwd">) to perform Local File Inclusion (LFI) and exfiltrate file contents into the generated PDF document.
  • [COMMAND_EXECUTION]: The skill relies on the execution of external system binaries to function.
  • Evidence: scripts/convert.py invokes the wkhtmltopdf binary through the pdfkit library to perform the HTML-to-PDF conversion.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 20, 2026, 06:30 AM