markdown-to-pdf
Warn
Audited by Gen Agent Trust Hub on Aug 1, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/md2pdf.mjsexecutes shell commands to manage its environment. - Evidence: The
ensureDeps()function usesexecSyncto runnpm installautomatically if dependencies are missing from the localnode_modulesdirectory. - [COMMAND_EXECUTION]: The skill spawns a web browser as a separate process to perform rendering.
- Evidence: The script uses the
puppeteer-corelibrary to launch a local Chrome, Chromium, or Edge instance with flags including--no-sandboxand--allow-file-access-from-files. - [DATA_EXFILTRATION]: The rendering configuration allows for potential exposure of sensitive local files into the output document.
- Evidence: The combination of the
--allow-file-access-from-filesbrowser flag and thehtml: trueconfiguration in themarkdown-itparser enables an attacker-controlled Markdown file to include HTML elements (such as<iframe>or scripts) that can read local files from the filesystem and include their contents in the generated PDF. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external Markdown data with a high-capability rendering engine, creating an attack surface for indirect injection.
- Ingestion points: The script
scripts/md2pdf.mjsreads the content of local.mdfiles provided as arguments usingfs.readFileSync. - Boundary markers: None; the skill does not use delimiters or warnings to separate user-provided content from instructions.
- Capability inventory: The skill has the ability to read and write files, execute shell commands (via npm), and launch subprocesses (the browser).
- Sanitization: While the script performs basic escaping for titles and Mermaid diagrams, the main parser is configured to allow raw HTML, allowing embedded malicious instructions or scripts to be executed within the browser context during PDF generation.
Audit Metadata