← All posts

Critical n8n + Supabase Flaw: Check Your Workflows Now

· Watch on YouTube

Your website can be fully updated and still be compromised, and today’s first story shows exactly how. A flaw involving n8n and Supabase can turn your own automation against your database.

The problem involves the table ID. If an attacker can control that value, they may be able to change where n8n sends the request. That creates a much bigger problem, because n8n may be connecting with the Supabase service role key.

That’s a powerful credential, and it’s designed to bypass Row Level Security. So here’s the interesting part: your Supabase security could be configured correctly, and your Row Level Security could be working correctly.

But the attacker isn’t necessarily attacking Supabase. They’re tricking n8n into using its own privileges against the wrong endpoint. That’s called a confused deputy problem, and it’s becoming increasingly important with AI agents and automation.

So update n8n to a patched release. Then check your Supabase workflows, especially anything receiving values from forms, webhooks, APIs or AI agents.

Your database may not be the weak point. The automation in front of it might be.