pdf-builder
Warn
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted text and data objects via Markdown and Jinja2 templates without sanitization.
- Ingestion points: The
markdown_text,html_file,source, and templatedataparameters inSKILL.mdaccept external content for processing. - Boundary markers: Absent; the skill instructions do not specify any delimiters or safety warnings for the agent to distinguish between its own logic and data content.
- Capability inventory: The skill uses Playwright (Chromium) and WeasyPrint, which provide full HTML/CSS rendering capabilities, including file system access for temporary file operations.
- Sanitization: Absent; input data is directly interpolated into HTML and template structures before being rendered into the final PDF document.
- [DATA_EXFILTRATION]: The
html_or_url_to_pdffunction exposes local files by allowing the use of thefile://protocol. - Evidence: The code in
SKILL.mdconstructs a URI usingfile://{source}and passes it topage.goto. If thesourcevariable contains a path to sensitive files (such as system configurations or credentials), their content will be rendered into the output PDF, resulting in data exposure. - [COMMAND_EXECUTION]: The skill relies on shell command execution for its Pandoc integration.
- Evidence:
SKILL.mdprovides multiple examples of executingpandocvia the command line, such aspandoc documento.md -o documento.pdf. This poses a risk of command injection if the agent does not properly validate or sanitize the filenames and parameters passed to the shell.
Audit Metadata