v0 output is Next.js, so the risk sits with server actions and route handlers that trust the form body, plus demo-mode defaults left in place. Test each action with another tenant's id and read the RSC payload for fields the UI never shows.
Where this class of bug actually lives in v0 output
- Server actions taking an id. Generated code posts the record id from the form, which is client-controlled.
- RSC payloads. A server component passing a whole database row to a client component ships every column to the browser.
- Demo defaults. Mock data, disabled auth and permissive CORS written to make the preview work.
- Route handlers. Added for a fetch the component needed, with no session check because the demo had no sessions.
What to try first
- Replay each server action with a swapped id and another tenant's value.
- View source on a page and read the
__next_fpayload for fields the UI hides. - Grep the repo for demo flags, mock auth and wildcard CORS before deploying.
- Request each
/apiroute with no cookie.
A reproduction you can keep
Generated server actions take ids from the form. Replay one:
# Next-Action id from the bundle or the network tab
curl -sS -i 'https://staging.example.com/dashboard' \
-X POST -H 'Next-Action: <id>' \
-H 'Content-Type: text/plain;charset=UTF-8' \
-H 'Cookie: session=***' \
--data-raw '[{"id":"1003","tenantId":"org_victim"}]
# vulnerable: 200 and the record is updated
# fixed: 403, or an error with no writeWhat "fixed" has to look like
Actions must derive identity and tenant from the session and reject ids outside it; server components must pass projections rather than rows. Verify by replaying the action with a foreign id and by reading the payload for stray fields.
Where people get this wrong
- A preview that works without auth ships that way if nobody greps for the flag.
- Client components receive exactly what the server component passed; hiding a field in JSX does not remove it from the payload.
- The action id in the bundle is stable, so a replay is easy to script.
What Offense does here
Offense runs an agent swarm against your app in a disposable sandbox, keeps the request, the identity and the vulnerable response as evidence, and replays the same attack after the fix so the retest is a control comparison rather than a green check. It does not read your source and it does not patch your code: the finding goes to your coding agent with the reproduction attached. The hosted workspace is invite-only — join the waitlist — and the free dependency audit in /install needs no account.
Questions this page answers
Is v0 output production-ready?
The UI usually is. Authorization and configuration are usually not, because the preview environment did not need them.
How do I test a Next.js server action?
Replay the POST with its Next-Action header and a changed id, using a second account's session.
Written by Offense Research, reviewed December 2, 2026. Correct something? Email imran@offenseresearch.com.