2026-12-02 · Daily security tips
Can an uploaded SVG run JavaScript on your site?
Lots of apps let people upload an avatar or attachment, then serve it back from the app's own domain, like yourapp.com/uploads/abc.svg. An SVG file can contain a <script> tag. Shown in an <img> tag, browsers don't run it. Opened directly at its URL, it runs as your site, so it can read tokens in localStorage and call your API as whoever clicked the link.
Check: open an uploaded file's URL, then look at DevTools > Network > Response Headers. If an SVG or HTML upload comes back from your own domain as image/svg+xml or text/html, with no Content-Disposition: attachment, it can run code.
Fix: only accept the file types you actually need, serve uploads from a separate domain, and send Content-Disposition: attachment plus X-Content-Type-Options: nosniff on them.
The full guide covers where hosted Supabase Storage already protects you, how proxy routes and express.static lose that, a safe test file and the exact headers to send.
Read the file upload guide →Is your live site exposing something like this?
The free quick check looks at what your site already serves publicly: secret keys in your JavaScript, open /.env files and /.git folders, Supabase tables readable with your public key, missing security headers, CORS misconfiguration, insecure cookie flags and TLS certificate expiry. No sign-up needed.
No app handy?
Example result · our deliberately broken demo app
6 issues found: 3 critical, 1 high, 1 medium, 1 low
- Critical: Stripe live secret key in public JavaScript
- Critical: /.env file readable by anyone
- High: Git repository exposed (/.git/HEAD)
The demo's problems are planted on purpose. Paste your own URL above to see yours.
No sign-up. Read-only public-resource and protocol metadata checks. No model prompts or tool execution. Scan only sites you own or are allowed to test.
Run on every deploy or use from Cursor / Claude Code via MCP →
Weekly AI-app security checklist
One short email a week: a practical check for apps built with Supabase, Next.js and AI tools (RLS, leaked keys, headers and more). Unsubscribe anytime.