App Development

23 Security Vulnerabilities to Check in Your Vibe-Coded App

23 security checks for anyone building apps with AI, with guidance from OWASP and technology providers.

TL;DR: 23 security risks to check before you launch

We got a lot of response from our Vibe-Coded App Launch Checklist. So we decided to put together an expanded list of common security vulnerabilities worth checking in vibe-coded apps. AI can help you build an app in days, but a working app is not necessarily a secure one.

Use this quick reference to spot potential weaknesses. Each check links to guidance from OWASP or the technology provider.

VulnerabilityWhat it meansThreat levelWhat to checkReferences
Exposed databases and storageUnauthorised users can access private records or files.CriticalCheck public access and test another user's data. Enforce RLS and private storage policies.OWASP Supabase
Next.js middleware bypassA known Next.js flaw can let attackers bypass authentication checks.CriticalCheck your Next.js version and whether APIs rely only on middleware for authorisation.OWASP Vercel
Weak JWT secretsPredictable signing keys can let attackers forge login tokens.CriticalCheck signing keys for hardcoded or predictable values. Rotate weak keys and validate tokens.OWASP
Server-side request forgeryAttackers trick your server into accessing internal services.HighReview URL-fetching features. Block private destinations, metadata endpoints and unsafe redirects.OWASP
Client-side price manipulationCustomers alter prices or discounts before submitting payments.HighTry changing prices in checkout requests. Calculate prices on the server.OWASP
Prompt injectionHidden instructions manipulate your AI into unwanted actions.HighCheck AI features that read emails, messages or documents. Keep tool permissions outside prompts.OWASP
Password reset poisoningAttackers manipulate password reset links to steal recovery tokens.HighInspect reset URLs. Build them from a trusted configured domain, never request headers.OWASP
Compromised dependenciesMalicious or vulnerable third-party code compromises your application.HighAudit packages and third party scripts; remove or update untrusted and vulnerable components.OWASP
Race conditionsSimultaneous requests exploit gaps in how your app updates data.HighTest simultaneous payments, redemptions and account changes. Use atomic transactions.OWASP
SMS pumpingAttackers trigger excessive SMS messages, creating unexpected charges.HighLimit repeated verification messages and enable provider fraud controls and spend alerts.GMSA Twilio
Exposed Source Code and Sensitive FilesPublicly accessible files reveal code, credentials or configuration details.HighCheck for publicly accessible .git, .env, backup and configuration files. Remove exposed files and rotate compromised credentials.OWASP (BAC) OWASP (ASVS)
Subdomain takeoverAttackers claim abandoned services linked to your subdomains.ModerateCheck DNS for abandoned hosting targets and remove dangling records.OWASP
Open redirectsLegitimate website links redirect visitors to malicious destinations.ModerateTry an external URL in redirect parameters. Allow only approved destinations.OWASP
ClickjackingInvisible page elements trick visitors into clicking unintended controls.ModerateTest whether another site can frame your app. Set CSP frame-ancestors.OWASP
User enumerationLogin responses reveal which email addresses have accounts.LowCompare login and reset messages for real and nonexistent accounts. Make responses generic.OWASP
Broken access controlUsers can view or change another person’s records, or use functions their role should not allow.CriticalTest access to other users’ IDs, admin functions and protected fields. Enforce permissions on every server operation.OWASP IDOR Prevention
SQL/NoSQL injectionMalicious input changes the meaning of a database query.CriticalUse parameterised queries and safe database APIs. Review raw SQL and dynamically constructed filters.OWASP SQL Injection Prevention
Cross-site scripting (XSS)Untrusted content runs JavaScript in someone else’s browser.HighReview user content rendered as HTML. Escape output, sanitise necessary HTML and avoid unsafe DOM operations.OWASP XSS Prevention
Insecure authentication and sessionsWeak login, recovery or session controls allow account takeover or continued access.HighReview token storage, session expiry and revocation, recovery flows and protection of privileged accounts.OWASP Authentication
Cross-site request forgery (CSRF)Another website tricks a signed-in browser into making unwanted changes.HighFor cookie-authenticated actions, validate CSRF protection, SameSite cookies and request origins.OWASP CSRF Prevention
Unrestricted API usageAttackers repeatedly call costly or sensitive endpoints without effective limits.HighSet per-user and global limits on expensive requests, messages, AI calls and database operations.OWASP API Resource Consumption
Insecure file uploadsUploaded files bypass ownership, type or processing safeguards.HighVerify real file contents, size, storage ownership and who can retrieve files. Isolate risky formats.OWASP File Upload
Security misconfigurationUnsafe defaults or inconsistent deployment settings expose features and data.HighInspect production and preview settings, permissions, CORS, debug features, secrets and environment isolation.OWASP Security Misconfiguration

* Risk ratings reflect potential impact when the weakness exists, not how likely your app is to be affected. Some checks apply only if you use the relevant feature or service.

Okay, what next then?

You can keep reading below for more detailed information on each of the security vulnerabilities.

Or, get a security check prompt for your AI coding agent:

Get the Prompts

Or reach out directly to us. We can help with a professional audit.

Request an Audit

Authentication and data security

1. Next.js middleware authentication bypass

In 2025, CVE-2025-29927 allowed a special HTTP header to skip middleware checks in some self-hosted Next.js apps. If an API relied on that gate alone, an attacker could reach protected data without logging in.

What to Check:

Check your Next.js version, apply the security patch and enforce permissions inside protected APIs. Next.js Security Advisory, CVE-2025-29927

2. Exposed Databases and File Storage

Incorrect access rules can expose customer records, documents or uploaded files to people who shouldn't see them. This applies across services including Supabase, Amazon S3, Google Cloud Storage and Firebase Storage.

What to Check:

Try accessing another user's records and files while logged out or signed in to a different account. Review database permissions, row-level security and storage access policies. OWASP Authorization Cheat Sheet

3. Weak JWT Secrets

Some applications use JSON Web Tokens (JWTs) to identify logged-in users. If a token is signed with a weak or predictable secret, an attacker may be able to forge a valid token and impersonate another user.

What to Check:

Check that JWT signing keys are strong, securely stored and never exposed in frontend code. Ensure your backend validates token signatures and permissions. OWASP JSON Web Token Cheat Sheet

4. Password Reset Poisoning

Some apps generate password reset links using the incoming request's headers. An attacker may be able to manipulate those headers so the legitimate reset email contains a link to an attacker-controlled website.

What to Check:

Check how password reset URLs are generated. Use a trusted, configured application URL instead of relying on request headers such as Host or X-Forwarded-Host. OWASP

5. User Enumeration

If your login or password reset page responds differently for existing and nonexistent accounts, attackers can discover which email addresses belong to your customers. That information can help them target phishing or password attacks.

What to Check:

Test login, registration and password reset with both real and nonexistent accounts. Use generic responses and rate limiting so attackers cannot easily identify registered users. OWASP Authentication Cheat Sheet

6. Client-Side Price Manipulation

If your application trusts prices submitted by the browser, someone may be able to change a $500 purchase to $5 before the payment request reaches your server.

What to Check:

Ensure prices, discounts and totals are calculated or verified on the server. Confirm the actual payment amount and status before fulfilling an order or granting access. OWASP Secure Payment Gateway Integration

7. SMS Pumping

An attacker can repeatedly trigger SMS verification messages through your app, creating a large bill. In some cases, artificially generated SMS traffic is used to profit from telecom revenue sharing arrangements.

What to Check:

Add rate limits to SMS endpoints, restrict destinations where appropriate and enable your messaging provider's fraud controls. Set spending alerts so unexpected traffic is detected early. GSMA: New and Repackaged Fraud Types

8. Race Conditions

Race conditions happen when two requests execute before either has finished updating the system. For example, a customer might redeem the same $50 credit twice if both requests see the original balance.

What to Check:

Test what happens when sensitive actions are submitted simultaneously. Use database transactions, atomic updates and idempotency controls to prevent duplicate payments, credits or redemptions. OWASP Business Logic Security Cheat Sheet

9. Prompt Injection

AI features can be manipulated by instructions hidden inside content they process. An attacker might place malicious instructions in a support email, SMS or document, causing an AI assistant to reveal information or take actions it shouldn't.

What to Check:

Identify every place your AI processes external content. Treat that content as untrusted, restrict the tools and data the AI can access, and require approval for sensitive actions. OWASP LLM Prompt Injection Prevention

10. Server-Side Request Forgery (SSRF)

If your app fetches URLs supplied by users, an attacker may be able to make your server contact internal services that aren't accessible from the internet. This can expose sensitive information or cloud credentials.

What to Check:

Review features that fetch images, documents, webhooks or other URLs. Allow only approved destinations, block access to internal networks and cloud metadata endpoints, and validate redirects. OWASP SSRF Prevention Cheat Sheet

11. Compromised Third-Party Dependencies

Your app may depend on dozens or hundreds of external libraries and scripts. If one is compromised, malicious code can enter your application even when your own code hasn't changed.

What to Check:

Audit npm and other package dependencies, review security alerts and remove unnecessary libraries. Check externally hosted scripts and keep vulnerable dependencies updated. OWASP Software Supply Chain Security

12. Exposed Source Code and Sensitive Files

Accidentally exposing .git folders, .env files, backups or configuration files can reveal source code, API keys, database credentials and other sensitive information. Attackers may even recover secrets from Git history that were deleted from newer versions.

What to Check:

Check that sensitive files and development directories aren't publicly accessible. Exclude them from deployments, scan for exposed credentials and rotate any compromised secrets. OWASP Application Security Verification Standard

13. Subdomain Takeover

Deleting a staging site or hosted service doesn't always remove its DNS record. If that record points to a service someone else can claim, an attacker may be able to publish content under your company's subdomain.

What to Check:

Review DNS records for unused development, staging and production services. Remove records pointing to deleted resources and check whether remaining services require domain ownership verification. OWASP Subdomain Takeover Prevention

14. Open Redirects

If your app accepts an arbitrary redirect URL, an attacker can create a legitimate-looking link to your website that immediately sends visitors to a fake login page. Users may trust the original link without noticing the destination.

What to Check:

Inspect login, logout and other redirect parameters. Prefer relative paths or an approved destination list, and never redirect users to arbitrary URLs supplied in a request. OWASP Unvalidated Redirects and Forwards

15. Clickjacking

An attacker can place your website inside an invisible or disguised frame on another page. Visitors think they're clicking something harmless but may actually be interacting with buttons inside your application.

What to Check:

Check whether your app can be embedded on an unrelated website. Use Content-Security-Policy frame-ancestors to control which sites, if any, may display your application in a frame. OWASP Clickjacking Defense Cheat Sheet

16. Broken access control (IDOR/BOLA)

An app can correctly require login and still let one customer access another customer’s records by changing an ID in a request. The same problem can expose admin actions or fields a user should never be allowed to edit.

What to Check:

Check permissions on every API operation and database query, including individual records, privileged functions and fields. Test using separate accounts with different roles. OWASP IDOR Prevention

17. SQL and NoSQL injection

If an app builds database queries by joining together user input, an attacker may be able to alter the query. Depending on the database and permissions, this could reveal or change private information.

What to Check:

Use parameterised queries or your database library’s safe query methods. Review raw SQL, dynamic filters and places where user-controlled values affect query structure. OWASP SQL Injection Prevention

18. Cross-site scripting (XSS)

A malicious user might submit a profile, review or message containing code that runs when another person views it. That code could act as the signed-in user or expose information available to the page.

What to Check:

Check how user-generated content is rendered. Use framework escaping, sanitise HTML when it must be supported, and avoid inserting untrusted text into executable browser contexts. OWASP XSS Prevention

19. Insecure authentication and sessions

A login system can work in a demo but still leave accounts vulnerable if sessions never expire, stolen tokens remain usable too long or privileged accounts have weak protection. Test and demo administrator credentials deserve particular attention.

What to Check:

Review account recovery, session lifetimes, token handling, logout and revocation. Check how test and administrator accounts are created and whether they can access real data. OWASP Authentication

20. Cross-site request forgery (CSRF)

If your app relies on browser cookies for authentication, a malicious website may be able to trigger actions in the background while someone is signed in, such as changing account settings.

What to Check:

Check whether sensitive requests rely on automatically sent cookies. Use appropriate CSRF tokens, origin checks and cookie protections. The risk depends on how authentication works. OWASP CSRF Prevention

21. Unrestricted API usage

Even a valid API request can become a problem if someone can repeat it thousands of times. Attackers may exhaust resources, inflate usage metrics or generate unexpected charges for AI, email or other services.

What to Check:

Review public and authenticated endpoints for rate limits, quotas and cost controls. Include batch operations, file processing, messaging and paid third-party calls. OWASP API Resource Consumption

22. Insecure file uploads

Checking a filename or declared file type does not guarantee an upload is safe. A malicious or incorrectly linked file could expose someone else’s documents, be served as active content or exploit a vulnerable file processor.

What to Check:

Verify stored objects and ownership, enforce size and type limits, and check the actual file contents. Secure preview, OCR, PDF and image-processing tools as well as download permissions. OWASP File Upload

23. Security misconfiguration

An app may be secure in its source code but exposed by a permissive cloud setting, debug endpoint or shared development database. A test account that reaches real records can be particularly dangerous.

What to Check:

Compare development, staging and production settings. Review cloud permissions, database and storage rules, CORS, debug access, account provisioning and separation of real data from test environments. OWASP Security Misconfiguration

Get our free AI Security Self-Check Prompt

Want to investigate these issues in your own project? Subscribe to the Ember Digital newsletter and we’ll send you a structured security audit prompt for Claude Code, Cursor or Codex, plus an independent verification prompt. They ask your coding agent to examine relevant code and configuration, record evidence and recommend next steps without changing your application.

It's a starting point, not a penetration test or a guarantee that an application is secure. Don't paste secrets or customer data into tools that aren't approved to handle them.

Sign-up to the Newsletter

Get our security audit Prompts when you sign-up to the newsletter.

Sign-up to the Newsletter

Want an independent review?

If your app handles real customers, payments or private data, we can help you understand which findings matter and what to fix first. Talk to Jeremiah at Ember Digital about an independent review, with clear priorities rather than an automatic recommendation to rebuild.

Professional Security Audit

Talk to Jeremiah about a security audit.

Professional Security Audit

Keep learning

This is the quick checklist. We'll explore individual vulnerabilities in more detail in upcoming articles. For the broader production-readiness picture, start with our Vibe-Coded App Launch Checklist.

About the author

Jeremiah Flickinger

Jeremiah works directly with Australian businesses on websites, follow-up systems and practical automation at Ember Digital.

More about Ember Digital and Jeremiah