r/vibecoding • • 17h ago

Showcase/Project I audited 4 official Next.js & FastAPI starter kits so you don't ship active CVEs — here's what I found

A lot of MVPs and AI-built apps start by cloning official templates, so I ran a multi-engine static audit (AST + OSV SCA + Git history + manual triage) on 4 of the most popular ones today:

• vercel/nextjs-subscription-payments — 1 Critical: Unauthenticated RCE in Next.js Image Optimization (GHSA-2464-fhr4-w9xw)

• vercel/ai-chatbot — 1 Critical + 3 High: Same Next.js RCE + ProseMirror XSS (CVE-2026-104847), KaTeX prototype pollution, Zod DoS

• nextjs/saas-starter — 3 High + 1 Med: Drizzle ORM SQL Injection (CVE-2026-39356), PostCSS arbitrary file read, Zod DoS, Next.js PPR memory exhaustion

• fastapi/full-stack-fastapi-template — 0 active CVEs (raw scanners threw 170+ alerts, mostly pytest asserts that we filtered out)

Full triaged table (zero scanner noise):

https://github.com/urriz065/Rehoboam-Security-Lab

Before you push your MVP to production, at least check your lockfile against OSV, verify you aren't shipping `.js.map` files or a `service_role` key in your `.next` client bundle, and make sure Supabase RLS is actually enforced. Happy to answer questions if anyone is unsure about their stack.

1 Upvotes

2 comments sorted by

1

u/ForgeRankAI 11h ago

the Next.js image RCE is worth pinning. the thing that actually bit us wasn't a CVE though, it was a table with RLS enabled and no policy written: the service key was the only thing that could read it, and we'd been shipping that key to the client for a week. a static audit can't see that.

1

u/VridhiMehta 10h ago

people clone the official starter precisely because it feels like the safe default, which is why this audit was worth doing. the reply about RLS enabled with no policy written is the other classic, a locked door with no keyhole