You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tech detection misses Supabase in real bundles: URL in a variable, sb_secret_ keys, matches past the bundle byte budget #1379
Tech detection misses Supabase in real production bundles. In a batch of ~35k audits (v0.0.141, local tech-detect over first-party bundles, #1254), tech detection missed Supabase on 3 of the 5 sites where we had independently confirmed a leaked Supabase key in the bundle. Every one of them calls Supabase from the browser. Each miss has a different cause:
The URL is a variable and the key literal sits elsewhere (Next.js/Turbopack chunk): let l="https://<ref>.supabase.co",h=.... No pattern matches, because the bundle detectors need the URL quoted right next to a key, a supabaseUrl/SUPABASE_URL property, or a createClient( call.
The key is a new-format secret key: const pD="https://<ref>.supabase.co",gD="sb_secret_…",Cf=hD(pD,gD). The pair pattern accepts only eyJ… and sb_publishable_… keys, so sb_secret_ (the worst case to miss) never matches.
A 742 KB Vite bundle: the pair pattern matches the full file at about 209 KB in, but the site was still not reported, probably because of the bundle byte budget ([tech_detect] bundle_bytes, 256 KB in that run).
Every one of these bundles contains supabase-js's own strings, which no other library ships. Two examples: the Node.js deprecation notice that links to github.com/orgs/supabase/discussions/<n>, and the auth storage key template `sb-${…}-auth-token`.
Expected
A bundle that includes supabase-js and a quoted https://<20-char ref>.supabase.co project URL is detected as Supabase, wherever the key is and whatever its format.
Acceptance Criteria
A minified bundle containing the supabase-js deprecation notice (github.com/orgs/supabase/discussions/…) and let l="https://abcdefghijklmnopqrst.supabase.co" (URL in a variable, no key next to it) is detected as Supabase.
"https://abcdefghijklmnopqrst.supabase.co",gD="sb_secret_…" is detected as Supabase, the same as sb_publishable_ and eyJ keys.
A supabase.co project URL in a bundle well past the first 256 KB (e.g. at 400 KB in a 1 MB bundle) is still detected under the default bundle_bytes.
Not detected: a bundle with only a docs link or a your-project.supabase.co placeholder, a bundle with only the supabase-js strings and no project URL, and a Base44 app (the unlessAny rule still holds).
Tests use minified real-build shapes (see tech-bundle-real-build-1254.test.ts) for each case above.
Activity
fix(tech-detect): detect Supabase from a supabase-js signature plus a…
fix(tech-detect): count only kept hits toward the per-hint cap (48), …
test(audit-engine): detect Supabase in a real minified supabase-js 2.…
fix(tech-detect): bundle sampling keeps every hint hit whose window c…
fix(tech-detect): detect Supabase from a supabase-js signature plus a…
fix(tech-detect): count only kept hits toward the per-hint cap (48), …
test(audit-engine): detect Supabase in a real minified supabase-js 2.…
fix(tech-detect): bundle sampling keeps every hint hit whose window c…
nc9 commentedon Oct 31, 2026
Shipped in v0.0.146 (
114cafcd396c8b93a244399dc76ca88f), verified against main: every acceptance criterion is met, with tests on a real minified supabase-js build. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.146nik
fix(rules): clip contradiction quotes and cap details list #1379
fix(rules): clip contradiction quotes and cap details list #1379
fix(rules): clip contradiction quotes and cap details list #1379
fix(rules): clip contradiction quotes and cap details list #1379
fix(rules): clip contradiction quotes and cap details list #1379
docs(changelog): move cross-page-contradictions entry under Unreleased …
fix(rules): clip contradiction quotes and cap details list #1379
docs(changelog): move cross-page-contradictions entry under Unreleased …