drawio
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
drawio-to-png.mjsexecutes thedrawiocommand-line utility viaspawnSyncto perform diagram exports. It also uses system utilities likewhereorwhichto locate the binary on the host system. - [EXTERNAL_DOWNLOADS]: When using the headless browser rendering path, the skill fetches the official rendering engine (
viewer-static.min.js) fromhttps://viewer.diagrams.net. This is a well-known service provided by the draw.io project. - [DYNAMIC_EXECUTION]: The skill uses
puppeteer-coreto launch a headless browser and injects diagram content into an HTML template for rendering. It executes JavaScript within the browser context to interact with the draw.io viewer engine. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process diagram XML data which may be generated based on untrusted user prompts.
- Ingestion points: The
drawio-to-png.mjsscript reads.drawiofiles, which contain XML formatted diagram data. - Boundary markers: None identified for the XML data content validation.
- Capability inventory: The skill has access to the file system (
readFileSync,writeFileSync), command execution (spawnSync), and network access via the headless browser. - Sanitization: The script performs escaping of backticks, dollar signs, and backslashes before embedding diagram content into the rendering HTML template to prevent script breakout in the browser context.
Audit Metadata