excalidraw-diagram
Warn
Audited by Snyk on Aug 6, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (medium risk: 0.30). The workflow renders the user/agent-authored
.excalidrawJSON by reading it from disk and injecting it into a browser renderer (render_excalidraw.py→raw = excalidraw_path.read_text(...)→window.renderDiagram(json_str)), so outsider-provided diagram text in the JSON is directly ingested as readabletext/originalTextat runtime.
MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).
- Potentially malicious external URL detected (high risk: 0.90). The render template loads and executes remote JS at runtime from the external module URL https://esm.sh/@excalidraw/excalidraw?bundle (references/render_template.html:16), so the renderer depends on fetching and running remote code to produce PNGs.
Issues (2)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W012
MEDIUMUnverifiable external dependency detected (runtime URL that controls agent).
Audit Metadata