Clarity as standard. Start a conversation

Plain-English guide

Outdated JavaScript libraries: the risk in old scripts

Hardly anyone writes every line of a website from scratch. Developers lean on ready-made bundles of code, called libraries, for menus, sliders, pop-ups and forms. That is sensible. The trouble comes later, when the site is finished and nobody goes back. Libraries get improved, flaws in old versions become public knowledge, and the site carries on loading the version it was built with years ago.

By Matt Rooney · 17/11/2026 · T19 Digital · 5 min read

The short version

  • Libraries are ready-made code that many websites borrow for common jobs.
  • Old versions can carry flaws that are publicly documented.
  • The scan spots well known libraries on your home page and flags old versions.

What a JavaScript library is

JavaScript is the language that makes web pages interactive: the menu that slides open on a phone, the gallery that swipes, the form that checks a phone number before sending. Rather than write those behaviours from nothing, developers use libraries, shared bundles of code that thousands of other sites also use. Using a library is like fitting a well known brand of lock rather than forging your own. It saves time and money, and the shared code has usually been looked at by far more people than any one developer's own work ever would be.

Libraries are released in versions. Each new version fixes bugs, improves speed and, now and then, closes a security weakness someone has found. The library's makers publish what changed, which is good practice and helps everyone keep up. It also means that once a weakness is fixed, its existence in older versions is a matter of public record.

Why old versions are a risk

A flaw in a popular library is not specific to your site. It exists on every site still running that version. Because the details are published once a fix exists, anyone looking for easy targets knows exactly which old versions to look for, and those versions are often named openly in a page's code. That makes old libraries one of the more visible weaknesses a small site can have.

What the flaw allows depends on the library. Often it is a way for someone to get their own script running in a visitor's browser under certain conditions, which can lead to the kinds of trouble other guides here describe: altered pages, captured form entries, misdirected visitors. Not every old library is dangerous, and not every flaw is usable on every site, but each one is a gap that need not be there.

How sites end up running old scripts

It is rarely neglect in the usual sense. A site is built, it works, and the developer moves on to other jobs. Nothing breaks, so nobody looks at the scripts again. Themes and plugins often bundle their own copy of a library and never update it. Some sites load several versions of the same library at once, because different add-ons each brought their own.

Updating is not always as simple as swapping a number. Newer versions sometimes change how things work, so code written for the old one may need adjusting. That is the reason updates get postponed, and postponed again, until the version on the site is far behind. The longer it waits, the bigger the eventual job tends to be. A gap of one version is usually a small change; a gap of many can mean rewriting the parts of the site that depend on it.

On a site that nobody actively maintains, this is one of the most common findings, and one of the least visible to the owner, because the menus and sliders still look and work exactly as they always did. Owners are understandably surprised to learn that something they never chose is the thing being flagged.

What the scan can spot from the outside

On its one visit to your home page, the check looks at the scripts the page loads and recognises widely used libraries and their versions where those can be read from outside. It compares those versions against what is publicly known about fixed flaws. An old version with known problems appears as a finding, rated by how much it matters.

There are limits. A library that hides its version, or a script only loaded on other pages, will not be seen. The check also cannot tell whether a particular flaw is actually usable on your site, because that would need active testing, which the scan never does. What it gives you is a clear, honest signal that something old is being served to every visitor.

Imagine a removals firm in Wolverhampton

Imagine a family removals firm in Wolverhampton whose site was built some time ago with a sliding gallery of vans and a quote request form. It still looks fine and still brings in work. The check shows two old libraries on the home page, one used by the gallery and one used by the form, both several versions behind and both with known flaws in the version being served.

In the private run-through, the gallery library turns out to be easy to update with no visible change. The form library is older and tangled into the theme, so the honest answer is to replace that piece with something current rather than patch around it. The owner gets a clear picture of which is quick and which is more involved, before anything is spent.

What he does not get is a lecture about the details of each flaw. He does not need one. He needs to know that his site is serving old code with known problems, and what it would take to stop. That is also the point at which the decision becomes his rather than ours. He might update both, update the gallery now and replace the form when the site is next refreshed, or decide the time has come for a new site altogether. Each of those is reasonable, and each is easier to choose when the facts are laid out plainly in front of him.

When updating is not the right move, and the next step

If the site is near the end of its life and a rebuild is already planned, spending heavily on updating old libraries may not make sense; it can be better to make the rebuild happen sooner. And if the only old library is unused, removing it entirely is often simpler than updating it. Neither choice is about doing less. Both are about not spending money twice.

The free check takes about thirty seconds. If it flags old libraries, our Security fix starts from £295 + VAT, fixed before any work, updating or replacing what is out of date and re-scanning to show the result. If the problem runs deeper than a few scripts, a website rescue from £600 to £900 + VAT may be the better fit.

Questions we get on this

My site works fine, so why does an old library matter?

Because the flaws in old versions do not stop the site working. They sit quietly until someone uses them. A library can look and behave perfectly while still carrying a publicly documented weakness that newer versions have closed.

Can I update the libraries myself from my site's admin?

Sometimes, if they come with a plugin or theme that updates cleanly. Libraries built into custom code or old themes usually need a developer, because newer versions can change behaviour and need testing before going live.

Will the scan tell me which flaw my library has?

The specific findings are not shown on screen. They are gone through privately after the check. Even then, we explain what needs doing rather than how any flaw works, because that is the useful part for an owner.

Does a hosted builder like Wix keep libraries up to date?

On hosted builders the platform generally manages its own code, so this is less often an issue. Custom code or third-party embeds you have added yourself can still load old scripts, which the check would flag.

Three things like this, once a month

What actually changed for small businesses in tech, what to do about it, and the guides we publish. No pitch, and you can leave with one click.

Check your own website

A free, passive scan of your home page and public DNS records. You get a score in about thirty seconds.