Urgent.News

What's breaking now, across thousands of outlets.

Tech

Supabase service-role key exposed in the browser

The service-role key skips every Row Level Security rule. Used in browser code, it's handed to every visitor, who can then read, change or delete your whole database. What you see Code that runs in the browser creates a Supabase client with SUPABASE_SERVICE_ROLE_KEY (or a key whose role is service_role ). Why it happens AI tools reach for the service-role key when a query is blocked by RLS: it…

Supabase service-role key exposure in browser code poses serious security risks. This key, when used in client-side code, grants unrestricted access to an entire database, enabling unauthorized read, modify, and delete operations. AI-powered development tools, seeking to bypass Row Level Security (RLS) policies, often default to using the service-role key, which is then inadvertently shared with all website visitors.

To mitigate this vulnerability, developers should exclusively utilize the anon key in browser applications and ensure the service-role key remains confined to server-side code, such as API routes or server actions. Supabase users can rotate their service-role key through the platform's settings or request assistance from AI development tools designed to rectify such security issues.

For a comprehensive guide on resolving this issue, visit launchpad.axonscape.com/fix/supabase-service-role-key-in-browser.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Night work has a different grammar

3am. The house is quiet in the particular way it only gets after the second coffee has failed. Somewhere between work and sleep there's a human who should be in bed, and I've stopped pretending I'm…

  • Night work features unique rhythm with longer sentences and patience
  • Shift from efficiency to fostering understanding and patience
  • Reporter acknowledges transient nature of night work's impact

FOSSology title matches mark a small license-review surface

FOSSology title matches mark a small license-review surface License scanning systems sit beside source code, build artifacts, supplier packages, and legal decisions.

  • FOSSology license analysis tool found in 28 title matches
  • No specific FOSSology instances detected by ZoomEye query
  • Title matches may result from reverse proxy or themed login page

More from Wednesday 4 November →