drawio
Pass
Audited by Gen Agent Trust Hub on May 19, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
drawio-to-png.mjsexecutes local system commands to locate and run rendering tools. - Locates executables using
which(Linux/macOS) orwhere(Windows). - Executes the
drawioCLI or browser binaries (Chrome, Edge, Chromium) to perform image conversion. - [EXTERNAL_DOWNLOADS]: When using the browser-based renderer, the script fetches the official draw.io library.
- Downloads
viewer-static.min.jsfromhttps://viewer.diagrams.netto provide the rendering engine. - [DYNAMIC_EXECUTION]: The skill dynamically generates execution context for the headless browser.
- Constructs HTML and JavaScript strings at runtime to wrap and process the diagram XML.
- Uses
page.setContentandpage.addScriptTagto assemble the rendering environment. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data (XML files) which presents an injection surface.
- Ingestion points: Reads
.drawiofiles from the local file system indrawio-to-png.mjs. - Boundary markers: Missing explicit prompt delimiters, but the script implements string escaping (backticks, backslashes, dollar signs) before inserting XML into its internal JavaScript template.
- Capability inventory: Subprocess execution (
spawnSync), file system writes (writeFileSync), and network-enabled browser automation (puppeteer). - Sanitization: Implements basic character escaping to prevent JavaScript template literal breakout within the browser context.
Audit Metadata