PatchPaste · Guides

Last updated 11 November 2026

Supabase "Leaked Password Protection Disabled" on a Lovable app: what to do

Lovable's security scan, or Supabase Security Advisor, says leaked password protection is turned off. You go to switch it on and Supabase says it needs a paid plan. Here is what the check does, what to do on the Free plan, and where it sits in your list of fixes.

Short answer: it means sign-up accepts passwords already in public breach lists. It is not a data leak. On Lovable Cloud, turn on Password HIBP check in More → Users → Settings → Email. On your own Supabase project, the toggle needs the Pro plan or above; on the Free plan, set a minimum length of 8+ and require digits, upper and lower case and symbols instead. Fix any "table publicly accessible" or open-policy findings first.

What the check actually does

Supabase's password security docs explain that leaked password lists are used for credential stuffing: automated sign-in attempts with passwords people reused elsewhere. With the setting on, "Supabase Auth uses the open-source HaveIBeenPwned.org Pwned Passwords API to reject passwords that have been leaked and are known by malicious actors."

Lovable's security overview lists "leaked-password protection turned off" as one of the database settings its Quick scan reviews on every publish, next to tables without row-level security and access rules that let everyone through.

Where it sits in your fix list

Not every finding in the same list is equally urgent. Roughly in this order:

  1. Data anyone can read or change. Supabase's Advisor docs describe "Table publicly accessible" (RLS off in public) as letting anyone with your project URL read, edit and delete all rows. Fix those first. See Supabase RLS check and RLS using (true).
  2. Secret keys in the browser. A service_role or sb_secret_ key in your JavaScript bypasses RLS. See service_role key exposed.
  3. Privileged functions anyone can call. See security definer function executable by anon.
  4. Account hardening, including leaked password protection and password strength. Worth doing before you launch to real users, but nothing is exposed while it is off.

Lovable Cloud (built-in backend)

Lovable's docs: "Using the built-in backend: Enable Password HIBP check in More → Users → Settings → Email." Then sign up a test account with a weak, common password to confirm it is rejected.

Your own Supabase project on the Pro plan or above

In your project's Auth settings, turn on the option to prevent the use of leaked passwords. While you are there, Supabase recommends a minimum length ("Anything less than 8 characters is not recommended") and requiring digits, lowercase and uppercase letters, and symbols.

Your own Supabase project on the Free plan

Supabase's docs are plain: "Leaked password protection is available on the Pro Plan and above." On the Free plan you can't clear the warning with the toggle, so do what is available:

Then note the warning as known in your launch checklist rather than switching providers or paying just to clear it. That is a judgement call for you: if your app holds sensitive data, the Pro plan toggle is the stronger option.

What happens to existing users

Supabase says existing users can still sign in with their current password. If it falls short of the new rules, signInWithPassword returns a WeakPasswordError explaining why. New users, and anyone changing their password, must meet the new rules. If your app shows a generic "something went wrong" on sign-in, handle that error with a clear message and a link to reset the password.

Fixes to refuse

Check it worked

  1. Re-run the Lovable Quick scan or Supabase Security Advisor.
  2. Sign up a test account with a weak, common password (it should be rejected) and with a strong one (it should work), then sign in with an existing test account.
  3. From outside: scan the live URL to confirm common tables don't answer to your public key and no secret key is in your JavaScript. It won't see your Auth settings, but it covers the problems that come before this one in the list.

A prompt to paste into Lovable

The security scan says leaked password protection is turned off. Do not write a custom password check in frontend code and do not store passwords in our own tables. 1) Tell me whether this project uses Lovable Cloud or a separate Supabase project, and which Supabase plan if you can see it. 2) If Lovable Cloud, tell me exactly where to enable Password HIBP check (More → Users → Settings → Email). 3) If Supabase Pro or above, tell me where to enable leaked password protection in Auth settings. 4) If Supabase Free plan, tell me where to set a minimum password length of at least 8 and require digits, lowercase, uppercase and symbols. 5) Make sign-in show a clear message with a password reset link when Supabase returns WeakPasswordError. 6) Before any of this, list any findings about tables readable without login or always-true access rules, because those come first.

Related: Is my Lovable app secure?, pre-launch checklist and is the anon key safe?

Leaked password protection FAQ

What does "leaked password protection disabled" mean?

Your app's sign-up and password-change flow accepts passwords that are already in public breach lists. Supabase's docs say that when the setting is on, Supabase Auth checks new passwords against the open-source HaveIBeenPwned Pwned Passwords API and rejects ones known to have leaked. Lovable's Quick scan reports it as "leaked-password protection turned off".

Is it a data leak?

No. Nothing in your database is exposed because of this setting. It is account hardening: it makes credential stuffing (trying passwords leaked from other sites) less likely to work against your users. Tables readable without a login, or a secret key in your JavaScript, are far more urgent.

Why can't I turn it on in Supabase?

Supabase's password security docs say: "Leaked password protection is available on the Pro Plan and above." On the Free plan, set a minimum length of at least 8 and require digits, lowercase, uppercase and symbols instead, in your project's Auth settings.

I use Lovable's built-in backend (Lovable Cloud). Where is the setting?

Lovable's security docs say: enable Password HIBP check in More → Users → Settings → Email. If your Lovable app is connected to your own Supabase project, use the Supabase Auth setting instead.

Will turning it on lock out existing users?

Supabase's docs say existing users can still sign in with their current password. If it falls short of the new rules, signInWithPassword returns a WeakPasswordError explaining why, and new users and anyone changing their password must meet the new rules.

Can PatchPaste see this setting?

No. PatchPaste does not sign in or read your Supabase Auth settings, so it cannot tell whether leaked password protection is on. It checks the live site from outside: secret keys in the JavaScript, common tables readable with the public anon key, exposed .env, .git and source maps, and headers.

Settings sorted? Check the live app for free

Paste your live URL for a free A to F report. PatchPaste checks whether common Supabase tables answer to your public anon key without a login (read-only, at most one row, discarded), searches the JavaScript your site sends for secret keys, and flags exposed .env/.git/source maps and missing headers. It does not sign in or read your Auth settings. Fix prompts for that report are a one-off £9 (or £29 for 10). Scans are free to rerun after each change.

Free. No login. No code access.

Want to see one first? View a sample report.

Sources (checked 11 Nov 2026): Supabase Password security (HaveIBeenPwned Pwned Passwords API, "available on the Pro Plan and above", length and character settings, WeakPasswordError for existing users, reauthentication and current-password options, bcrypt hashes in auth.users); Lovable Security overview (Quick scan covers leaked-password protection; Password HIBP check location for the built-in backend); Supabase Database Advisors (lint 0013 "Table publicly accessible"). The warning title wording varies between Lovable and Supabase screens.