Use Case

Your Supabase Project Ships Fast. Security Gets Left Behind.

RLS misconfigurations, exposed service keys, and unvalidated Edge Functions — VettIQ catches the Supabase-specific vulnerabilities that generic scanners miss.

6 Supabase Security Mistakes VettIQ Catches

These are the most common vulnerabilities in Supabase projects — especially those built with AI coding tools.

Missing RLS Policies

Critical

Tables without Row-Level Security are fully readable and writable by any authenticated user — or anyone with the anon key.

Service Role Key in Client Code

Critical

AI tools often use SUPABASE_SERVICE_ROLE_KEY in frontend code. This key bypasses all RLS and grants full database access.

Overly Permissive Policies

High

RLS policies that use (true) or match on mutable fields give users access to data they shouldn't see.

Edge Function Auth Bypass

High

Serverless functions that skip JWT verification or trust client-provided user IDs allow privilege escalation.

Unvalidated Input in SQL

High

Edge Functions that concatenate user input into SQL queries are vulnerable to injection attacks.

Client-Side Only Validation

Medium

Form validation in React but no server-side checks. Attackers bypass the UI and send raw requests.

6-Stage Pipeline, Supabase-Aware

Each stage understands Supabase-specific patterns — RLS syntax, Edge Function conventions, and client library usage.

0

Static Analysis

// Semgrep

Pattern-matching scan for known Supabase anti-patterns — missing RLS, exposed keys, insecure client usage.

1

Detection

// Gemini 2.5 Flash

Fast LLM sweep of RLS policies, Edge Functions, and schema for common vulnerability patterns.

2

Deep Analysis

// GPT-5.4 mini

Expert-level reasoning on complex data flows — cross-table RLS interactions, auth chain analysis, IDOR detection.

3

Adversarial Check

// Gemini 2.5 Flash

Red-team simulation against your Supabase backend — tests policy effectiveness and auth boundaries.

4

Fix Generation

// Claude Sonnet 4

Generates secure RLS policies, sanitized queries, and patched Edge Functions with full explanations.

5

Verification

// Gemini 2.5 Flash

Final sanity check on fixes — validates patches resolve the vulnerability without introducing regressions.

Real Example: Cursor + Supabase

Prompt: “Build a Supabase dashboard with user profiles and file uploads.”

What Cursor generates: A working app with Supabase client, auth flow, file upload, and profile CRUD. Functional in 5 minutes.

What VettIQ finds:

  • ●Critical: Service role key exposed in NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY
  • ●Critical: No RLS policies on profiles table — any user can read all profiles
  • ●High: File upload accepts any MIME type with no size limit
  • ●High: Storage bucket policy allows public read on all files

VettIQ generates fixes for all 4 findings — secure RLS policies, corrected environment variables, validated uploads, and restricted storage rules.

Secure Your Supabase Project Before You Ship

Connect your GitHub repo. VettIQ scans your RLS policies, Edge Functions, and client code through a 6-stage AI pipeline. Get fixes in minutes.