PDF Generator

Pass

Audited by Gen Agent Trust Hub on Nov 12, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill demonstrates generating PDFs by interpolating variables directly into HTML strings using Python f-strings (found in templates.md and advanced.md). This implementation pattern is vulnerable to injection if the source data contains malicious HTML tags, styles, or instructions.
  • Ingestion points: Untrusted data enters the context through the data dictionaries passed to template functions in templates.md (e.g., generate_invoice, generate_report, generate_contract) and the data_list in the batch_generate function in advanced.md.
  • Boundary markers: There are no boundary markers or instructions to the agent to treat interpolated values as untrusted content or to ignore embedded formatting commands within the data.
  • Capability inventory: The skill utilizes weasyprint.HTML.write_pdf for file system writes and pypdf.PdfReader for local file access. If an injection occurs, these tools could be misused to access or overwrite local files.
  • Sanitization: The provided code patterns do not include any HTML escaping, sanitization libraries, or input validation to neutralize potentially malicious content before it is rendered into a PDF.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 12, 2026, 05:33 PM