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.mdandadvanced.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
datadictionaries passed to template functions intemplates.md(e.g.,generate_invoice,generate_report,generate_contract) and thedata_listin thebatch_generatefunction inadvanced.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_pdffor file system writes andpypdf.PdfReaderfor 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