guardvibe 3.0.45 → 3.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -539,8 +539,14 @@ export function analyzeCode(code, language, framework, filePath, configDir, rule
539
539
  if (isMobileClient)
540
540
  continue;
541
541
  }
542
- // Skip VG448 (Supabase RPC bypass RLS) when using service_role key (server-side)
543
- if (rule.id === "VG448" && /(?:SUPABASE_SERVICE_ROLE|service_role|createServerSupabaseClient|createServerClient)/i.test(code))
542
+ // Skip VG448 (Supabase RPC bypass RLS) when the file is on a server-side codepath
543
+ // using a service-role / admin Supabase client. RLS bypass is intentional in those
544
+ // contexts and is identical in posture to direct .from(...).update(...) writes that
545
+ // already bypass RLS via the same key — flagging only .rpc() syntax produces FPs.
546
+ // Naming variants covered: createServerClient (Supabase docs), createServerSupabaseClient,
547
+ // createServiceClient / createServiceRoleClient (common project conventions),
548
+ // createAdminClient (Clerk-adjacent and DIY).
549
+ if (rule.id === "VG448" && /(?:SUPABASE_SERVICE_ROLE|service_role|createServerSupabaseClient|createServerClient|createService(?:Role)?Client|createAdminClient|createServiceSupabase)/i.test(code))
544
550
  continue;
545
551
  // VG872/VG873 legitimate package filtering is handled at match level below
546
552
  // Skip server-only import rule (VG964) for files that are inherently server-only:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guardvibe",
3
- "version": "3.0.45",
3
+ "version": "3.0.46",
4
4
  "mcpName": "io.github.goklab/guardvibe",
5
5
  "description": "Security MCP for vibe coding. 365 rules, 36 tools, CLI + doctor. Host security, auth coverage mapping, LLM-powered deep scan (IDOR/business logic), taint analysis. Plus Next.js, Supabase, Clerk, Stripe, Prisma, tRPC, Hono, GraphQL, Convex, Turso, Uploadthing, AI SDK, and the full AI-generated stack.",
6
6
  "type": "module",