tinytldr compiles templates and agent-supplied design inputs (strict, tweak, and freeform modes) and renders them in headless Chromium. Because agent-supplied or third-party template markup and styles are treated as untrusted input, tinytldr enforces defense-in-depth isolation:
- No Template JavaScript: Templates use LiquidJS syntax and HTML/CSS only.
<script>tags, inlineon*event handlers,javascript:URLs, and foreign script execution are stripped/rejected at validation and compilation time. Only the internal@tinytldr/runtimescript is injected by the renderer. - Zero External Network Access: During Playwright Chromium rendering, all external network requests (
http://,https://,ws://,wss://,ftp://,file://) are intercepted and aborted. Only explicitly registered local assets and bundled OFL fonts served via the internal local asset handler are permitted. - Filesystem Path Containment: Local asset registration (
add_asset) and output paths validate canonical paths and reject directory traversal or unauthorized file reads. - Resource & Time Bounds: Every render session runs in an isolated browser context with strict per-page timeouts and frame limits, and
ffmpegis spawned with explicit argument arrays (spawn, never shell interpolation).
Please do not report security vulnerabilities (especially sandbox escapes, SSRF/network bypasses, arbitrary file reads, or command injection) in public GitHub issues.
Instead, report vulnerabilities privately through GitHub Security Advisories. Include:
- A minimal reproduction (
design.json, template manifest/HTML/CSS, or MCP tool call payload). - The affected package (
@tinytldr/core,@tinytldr/renderer,@tinytldr/mcp,tinytldr, or@tinytldr/website) and operating system. - The observable impact (e.g., outbound network request, file disclosure, script execution).
We will acknowledge receipt within 72 hours and coordinate a fix and advisory disclosure.