Vercel and Lovable Got Breached in the Same Week. Your API Keys Might Be in Both.
Lovable exposed your AI chat history and database credentials. Vercel leaked your environment variables. Here’s exactly what happened, who’s affected and what to do right now.
I need you to stop what you’re doing for five minutes.
If you’ve ever used Lovable to vibe-code an app or if you deploy anything on Vercel, your credentials may be compromised right now. Not theoretically. Not in some future attack scenario. Right now, as you’re reading this.
Two of the most popular developer platforms got hit within the same week. Different attacks. Different vulnerabilities. Same result: your secrets are potentially in someone else’s hands.
I tweeted about both of these as they broke, and the responses told me something alarming. Most developers had no idea either had happened.
So let me walk you through both incidents, what actually went wrong, who needs to act, and what this tells us about a pattern that’s only going to get worse.
Breach #1: Lovable — Your AI Conversations Were Never Private
Lovable is one of the hottest “vibe coding” platforms out there. You describe what you want in plain English, the AI builds it for you. It’s fast, it’s fun, and developers from companies like NVIDIA, Microsoft, Uber, and Spotify have used it.
Here’s what happened.
A security researcher discovered a Broken Object Level Authorization (BOLA) flaw in Lovable’s API. In simple terms: the system wasn’t properly checking whether a user was allowed to access a particular project. Any user, including people on free accounts, could access other users’ projects.
What was exposed:
- AI chat histories: every conversation you had with the AI while building your app
- Source code: the actual code generated for your projects
- Database credentials: including Supabase API keys that were embedded in project contexts
The issue affects projects created before November 2025.
As I wrote when this broke:
<iframe class="w-full border" width="500" height="281" frameborder="0" data-iframe-id="611ed615d3f946d1db308798f7d03c7e" srcdoc="Dhanush N on X (formerly Twitter): "vibe coding platform lovable reportedly suffered a breach exposing users ai chat histories, source code and database credentials.the issue appears to affect projects created before november 2025, with data accessible even from free accounts.users from companies like nvidia,… pic.twitter.com/fNF0mGgu5X / X" – Mediumbody {text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: "ff-tisa-web-pro", Georgia, Cambria, "Times New Roman", Times, serif; font-weight: 400; color: #333332; font-size: 18px; line-height: 1.4; margin: 0; background-color: white; overflow: hidden;}iframe {max-width: 100%;}html, body, iframe { width:100%; height:100%; }if (document) {
console.log("[FREEDIUM] iframe workaround started");
}
function notifyResize(height) {height = height ? height : document.documentElement.offsetHeight; var resized = false; if (window.donkey && donkey.resize) {donkey.resize(height);resized = true;}if (parent && parent._resizeIframe) {var obj = {iframe: window.frameElement, height: height}; parent._resizeIframe(obj); resized = true;}if (window.location && window.location.hash === "#amp=1" && window.parent && window.parent.postMessage) {window.parent.postMessage({sentinel: "amp", type: "embed-size", height: height}, "*");}if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.resize) {window.webkit.messageHandlers.resize.postMessage(height); resized = true;}return resized;}function handleMessage(event) {
if (!event.data || (typeof event.data != 'string')) {
return false;
}
var data;
try {
data = JSON.parse(event.data);
} catch (e) {
console.error(e);
return false;
}
var iframe = document.querySelector('iframe');
if (!iframe || !(data.type === 'MEASURE' || data.context === 'iframe.resize')) {
return false;
}
notifyResize(data.height || data.details.height);
}; window.addEventListener('message', handleMessage)window.__CF$cv$params={r:'a34f380cc8018d99',t:'MTc4ODM4MDQ2NA==',u:'01a063c844b87060979b48005f202f84',ut:'HGxypK93t4VUXiE4PaBGCSe.BH1ZDL.IrJhKGMbCOkA-1788380464-1.2.1.1-4J1Qj__WGr3AH0syg0bgRebf8z698yxQfwPcfwYCQ_EaUr4in0z0.L1ismHDmioiEQsQryftU.leaYy9EWv3lIJ2SowpxfPj1vdQuRcasMs',i:60};(function(){if(!document.body)return;var s=document.createElement('script');s.src='/cdn-cgi/challenge-platform/scripts/precursor/main.js';document.head.appendChild(s);})();
” sandbox=”allow-same-origin”>
Let that timeline sink in. The researcher reported this vulnerability through HackerOne on March 3, 2026. It was classified as a duplicate. And then it sat there. For 48 days. Open. Unpatched. While user data was accessible.
Lovable’s official response was that this wasn’t a “breach” but rather an issue with project visibility settings and unclear documentation about what “public” projects actually exposed. They said they patched chat message visibility and had switched the default to “private” back in December 2025.
Here’s my take as a security engineer: calling it a documentation issue doesn’t change the fact that database credentials were accessible to unauthorized users. You can call it whatever you want. When credentials leak, it’s a breach. The label doesn’t matter. The exposure does.
Breach #2: Vercel — The Supply Chain Strike You Didn’t See Coming
Two days later, Vercel dropped their own security notice. And the attack vector on this one is the kind of thing that should make every engineering team rethink their third-party tool policies.
Here’s the chain:
- A Vercel employee signed up for Context.ai, a third-party AI analytics tool
- They used their Vercel enterprise Google Workspace account to sign up
- They granted the tool “Allow All” permissions on their Google account
- Attackers compromised Context.ai
- Through the compromised tool, attackers gained access to the employee’s OAuth token
- Using that token, they took over the employee’s Google Workspace account
- From there, they accessed Vercel’s internal systems
The result: environment variables that were not marked as “sensitive” in Vercel’s platform were potentially exposed.
Environment variables. The place where developers store database passwords, API keys, auth tokens, payment gateway credentials, and every other secret that makes their application work.
As I tweeted:
<iframe class="w-full border" width="500" height="281" frameborder="0" data-iframe-id="09a4e1ba31f397beb2d07c1c09c9d310" srcdoc="Dhanush N on X (formerly Twitter): "🚨 Vercel just got hacked.Here's what you need to know:→ Someone got unauthorized access to Vercel's internal systems → Vercel has called in incident response experts + notified law enforcement → Only a "limited subset" of customers were hitThe scary part?Their… pic.twitter.com/XHyagYzo6y / X" – Mediumbody {text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: "ff-tisa-web-pro", Georgia, Cambria, "Times New Roman", Times, serif; font-weight: 400; color: #333332; font-size: 18px; line-height: 1.4; margin: 0; background-color: white; overflow: hidden;}iframe {max-width: 100%;}html, body, iframe { width:100%; height:100%; }if (document) {
console.log("[FREEDIUM] iframe workaround started");
}
function notifyResize(height) {height = height ? height : document.documentElement.offsetHeight; var resized = false; if (window.donkey && donkey.resize) {donkey.resize(height);resized = true;}if (parent && parent._resizeIframe) {var obj = {iframe: window.frameElement, height: height}; parent._resizeIframe(obj); resized = true;}if (window.location && window.location.hash === "#amp=1" && window.parent && window.parent.postMessage) {window.parent.postMessage({sentinel: "amp", type: "embed-size", height: height}, "*");}if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.resize) {window.webkit.messageHandlers.resize.postMessage(height); resized = true;}return resized;}function handleMessage(event) {
if (!event.data || (typeof event.data != 'string')) {
return false;
}
var data;
try {
data = JSON.parse(event.data);
} catch (e) {
console.error(e);
return false;
}
var iframe = document.querySelector('iframe');
if (!iframe || !(data.type === 'MEASURE' || data.context === 'iframe.resize')) {
return false;
}
notifyResize(data.height || data.details.height);
}; window.addEventListener('message', handleMessage)
window.__CF$cv$params={r:'a34f380e4bf0b9c9',t:'MTc4ODM4MDQ2NA==',u:'01a063c845ae77d3b07f9c06d3745d5b',ut:'tVqImof03OLdSa.aLMvmfJHIn2c71HsgwlEdLx2ImeA-1788380464-1.2.1.1-lm3mYKeRsqxm.CC04XywK8p55ACfbYDEv677NCzhlP8RHpmqrTaXx6iS4RL3pSh_XLOhpFQ.b9KRF3F1uKMjUxDVQm5kpm1xFsagqgprV6Y',i:60};(function(){if(!document.body)return;var s=document.createElement('script');s.src='/cdn-cgi/challenge-platform/scripts/precursor/main.js';document.head.appendChild(s);})();” sandbox=”allow-same-origin”>
Vercel confirmed that variables explicitly marked as “sensitive” were stored differently and were not accessed. They also confirmed that their npm packages (including Next.js) and core platform infrastructure were not compromised. The impact was limited to a “subset” of customers.
But here’s what caught my attention: the entire breach started because one employee gave broad OAuth permissions to a third-party AI tool. One person. One checkbox. And that was enough to create an entry point into one of the most widely used deployment platforms in the world.
The Pattern You Should Be Worried About
These two breaches look different on the surface.
- Lovable was an API authorization flaw.
- Vercel was a third-party supply chain compromise.
But zoom out and they share something critical: both attacks targeted the developer toolchain, not the application itself.
Nobody hacked the apps that developers built on these platforms. They hacked the platforms developers use to build apps. That’s a distinction with enormous implications.
Your application might have perfect security. Your code might be audited. Your infrastructure might be locked down. But if the platform where you write that code, store your prompts, or deploy your builds is compromised, none of that matters.
Think about what developers expose to their tooling:
- AI coding platforms see your entire codebase, your prompts, your architecture decisions, and often your database credentials
- Deployment platforms hold all your environment variables, your build configurations, your domain settings, and your access tokens
- CI/CD tools have permissions to push code to production, access secrets vaults, and interact with your cloud infrastructure
These tools are not peripheral to your security posture. They ARE your security posture. And right now, they’re being targeted because attackers know they’re softer targets than the applications they serve.
Action Items: Lovable Users
If you’ve ever used Lovable, do these things today:
1. Assume your credentials are compromised.
If you created any project on Lovable before November 2025, treat every credential that was embedded in your project context as leaked. This includes Supabase keys, API tokens, database connection strings, or anything else that appeared in your code or AI conversations.
2. Rotate everything.
- Database passwords
- Supabase API keys
- Third-party API tokens
- Any secret that appeared in your Lovable chat or generated code
Do not wait. Do not assume the patch fixed retroactive exposure. Rotate now.
3. Check your project visibility settings.
Log into Lovable and verify that your projects are set to private. If any sensitive project was set to public (or defaulted to public because it was created before December 2025), assume its contents were accessible.
4. Audit your AI conversations.
Go through your Lovable chat history. Did you paste credentials directly into the chat? Did you ask the AI to configure database connections? Whatever you put in those conversations was potentially visible to others. Rotate those specific credentials.
5. Stop hardcoding secrets into AI coding tools.
This is the big takeaway. Never paste raw credentials into an AI coding assistant. Use environment variable references. Use placeholder values. Configure secrets through your deployment platform, not through your AI chat.
Action Items: Vercel Users
If you deploy on Vercel, do these things today:
1. Check if you were directly notified.
Vercel contacted affected customers directly. Check your email. If you received a notification, follow their specific instructions immediately.
2. Rotate your non-sensitive environment variables.
Vercel’s “sensitive” variables use a different storage mechanism and were not exposed. But if you stored secrets as regular (non-sensitive) environment variables, treat them as compromised and rotate them.
To check: go to your Vercel project settings and look at your environment variables. If any of them contain real secrets (API keys, database passwords, tokens) and are NOT marked as “sensitive,” rotate them now and re-add them as sensitive variables.
3. Audit your OAuth integrations.
The Vercel breach started because an employee gave an AI tool broad OAuth permissions. Your team might have done the same thing with other tools.
Go to your Google Workspace admin console (or whatever identity provider you use) and review every third-party app that has been granted access. Revoke anything that:
- Has overly broad permissions
- Is no longer actively used
- Is from a vendor you don’t recognize
4. Enable MFA everywhere.
If MFA is not enabled on your Vercel account, your Google Workspace account, and every other tool in your development pipeline, turn it on now.
5. Review your deployment logs.
Check your Vercel deployment history for any suspicious activity. Look for unexpected deployments, unknown users, or changes to environment variables that you didn’t make.
The Bigger Lesson: Your Dev Tools Are Your Attack Surface
I’ve been writing about supply chain security for a while now. npm attacks. AI data pipeline risks. Lock file manipulation. But this week crystallized something I’ve been circling around.
The developer toolchain is now the primary attack surface for modern applications.
It used to be that attackers targeted your servers, your network, your users. Now they target the place where you build the thing. Because if they compromise your build pipeline, your AI coding assistant, or your deployment platform, they don’t need to hack your application. They’ve already got the keys.
This is especially dangerous with the new wave of AI-powered development tools. Developers are pouring their most sensitive information into these platforms. Full codebases. Database schemas. API keys. Architecture discussions. All of it goes into the AI context window, and most of these platforms are startups with security postures that haven’t caught up to the sensitivity of the data they hold.
Lovable is a vibe coding tool that lets you build apps by chatting with an AI. It’s brilliant for prototyping. It’s also a platform where developers were pasting database credentials into chat conversations that turned out to be accessible by anyone with a free account.
Vercel is a mature, well-funded platform with serious engineering talent. And they still got breached through a third-party AI tool that an employee gave overly broad permissions to.
If these platforms can be hit, every developer tool can be hit.
Five Rules Going Forward
Based on everything I’ve seen this week, here’s what I’m telling every engineering team I work with:
1. Never give AI tools access to real credentials. Use dummy values during development. Inject real secrets only through your deployment pipeline’s secret management system.
2. Audit every OAuth permission every quarter. One unchecked “Allow All” checkbox on a third-party tool is all it takes.
3. Use “sensitive” environment variable features when available. If your platform offers an encrypted or restricted storage option for secrets, use it. Always.
4. Treat your AI coding assistant as a public channel. Anything you type into an AI tool should be treated as potentially accessible by others. If you wouldn’t post it on Twitter, don’t paste it into an AI chat.
5. Monitor your vendor’s security disclosures. Most developers found out about both of these breaches through Twitter, not through official notifications. Follow security news actively. Don’t wait for the email.
Final Thought
Two breaches. Same week. Both targeting the tools developers trust most.
One was an authorization flaw that sat unpatched for 48 days after being reported. The other was a supply chain attack that started with a single employee’s OAuth permissions.
Neither required sophisticated hacking. Neither exploited complex zero-days. Both succeeded because of basic, preventable security failures applied to platforms holding extraordinarily sensitive data.
The tools are getting smarter. The security around them is not keeping up.
Rotate your keys. Audit your permissions. And the next time you paste a database password into an AI assistant, ask yourself: who else can see this?
Because with these incidents, we learned the answer might be everyone.
Who Am I ?
Hi, I’m Dhanush Nehru an Engineer, Cybersecurity Enthusiast, Youtuber and Content creator. I document my journey through articles and videos, sharing real-world insights about DevOps, automation, security, cloud engineering and more.
You can support me / sponsor me or follow my work via X, Instagram ,Github or Youtube


