We UC
Back to blog
·6 min read·We UC Team

Are the packages in my AI-built app out of date, and is that a security risk?

Most AI-built apps stand on hundreds of other people's packages. Here is how to find out whether yours have known security holes, and what to ask for, without being an engineer.

Are the packages in my AI-built app out of date, and is that a security risk?

Out of date is not the same as unsafe, but a package with a published security hole is a real risk, and you can find out whether you have one quickly. If your app's code is in a GitHub repository you own, switch on Dependabot alerts and read the list. If you have a developer, ask them to run npm audit and send you the output. Neither needs you to change anything.

What are the packages in my app?

Packages are pieces of other people's code that your app borrows, such as the library that handles logins, dates or payments. An app built with Lovable, Bolt, Cursor or Replit lists the ones it uses directly, and each of those pulls in more of its own. Most of the full set was never chosen by anyone at your company.

That is normal, and it isn't a sign that the app was built badly. It does mean your app's safety depends partly on code you have never seen, written by people you have never met. The list lives in a file called package.json, and a second file, usually package-lock.json, records the exact versions in use.

Is an out-of-date package a security risk?

Only when the version you use has a known vulnerability, and the version number alone can't tell you that. An old package with no published flaw is a maintenance chore. A recent one with a published flaw is the urgent case. What matters is whether the version appears in a database of known vulnerabilities, and whether a fixed version exists.

This is why "update everything" is poor advice for a live app. Each update can change how the package behaves, and an app with no tests can break in a way nobody notices until a customer does. The aim is to fix the ones with known holes first, one at a time, and check the app works after each.

How do I check for known vulnerabilities without being an engineer?

There are two checks, and a non-engineer can ask for either. The first is GitHub's Dependabot. GitHub's documentation on Dependabot alerts says it scans the default branch of your repository and sends an alert when a new vulnerability is added to the GitHub Advisory Database, or when your dependencies change. Each alert shows the severity and, where there is one, a fixed version. Repository administrators and organisation owners can switch alerts on.

The second is a command. The npm documentation for npm audit says it sends a description of your project's dependencies to the registry and asks for a report of known vulnerabilities. It exits with a code of 0 when it finds none, and it needs a lock file to run. Anyone with a copy of the code can run it, and the report is plain text you can forward.

Both only report vulnerabilities somebody has already found and published. A clean report doesn't prove the app is secure, and our piece on whether a vibe-coded app is secure covers the other checks.

What should I do when it finds something?

Fix the high-severity ones that have a fixed version first, and treat each fix as its own small change. Dependabot can help here: GitHub's documentation on security updates says that once you switch them on, Dependabot raises a pull request for each alert that has a patch, upgrading to the minimum version that includes the fix. A pull request is a proposed change that nobody has applied yet, so a person still has to review it and decide whether to merge it.

The npm documentation adds a caution for the automatic route. npm audit fix applies remediations to your package tree, and it notes that some vulnerabilities can't be fixed automatically and need manual review. So run it on a copy of the app, not the live one, and test the sign-in, the payment and the main screens before anything goes out. If your app has no separate test copy, making a Bolt or Replit app safe for production explains why that comes first.

What if my app is only inside Lovable or Bolt, with no repository?

Then neither check can run, because nothing holds the list of packages where a scanner or a developer can read it. Connecting the project to GitHub, in an account in your name, is the first step. We walk through it in handing a Lovable app to another developer, and it is worth doing whatever you decide about packages.

How often should I check?

A one-off check tells you about today only. Dependabot alerts are the lower-effort habit, because they arrive when a new vulnerability is published and not when you remember to look. For an app that takes payments or holds customer details, someone should be named to read them and act, which is the work a maintenance retainer covers.

Common questions

Will updating a package break my app?

It can. A newer version may change how a feature behaves, which is why we fix one thing at a time on a copy of the app and check the main journeys afterwards.

Does a clean npm audit mean I'm safe?

No. It means no known, published vulnerability was found in the packages it could see. It says nothing about how the app handles logins, permissions or secrets in your own code.

Does a Rescue audit cover this?

Yes, as part of the security and code review, which are both in the audit's scope. It needs read access only, so nothing on your live app is changed while we look.

Where do I start?

If you would rather have a written answer than a list of alerts, the Rescue audit is a fixed £2,500 + VAT, deducted from the first phase if you go ahead with us on the fix, and the report is yours either way. You can also tell us what you've built and we'll say whether an audit is the right first step.