drawio
Pass
Audited by Gen Agent Trust Hub on May 18, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The diagram export script (
scripts/drawio-to-png.mjs) fetches the official draw.io rendering engine fromhttps://viewer.diagrams.net/js/viewer-static.min.jsto process diagrams when the local CLI is not available. - [COMMAND_EXECUTION]: The script attempts to locate and execute the
drawioexecutable on the host system to perform exports by searching common installation paths and using system utilities. - [REMOTE_CODE_EXECUTION]: The skill launches a headless browser using Puppeteer to execute the official draw.io viewer's JavaScript code within a browser context for diagram rendering.
- [PROMPT_INJECTION]: The skill possesses an indirect prompt injection surface as it processes diagram XML data.
- Ingestion points: Reads contents from files with the
.drawioextension inscripts/drawio-to-png.mjs. - Boundary markers: None identified; the XML content is processed directly for rendering.
- Capability inventory: The rendering script has access to
spawnSyncfor subprocess execution andwriteFileSyncfor file system operations. - Sanitization: Content is escaped for JavaScript template literal embedding, but no semantic sanitization of the diagram XML structure is performed.
Audit Metadata