Your website is also made of other people's code.

Web designSecurityMaintenance

A modern website installs hundreds of packages nobody on the project wrote. Maintaining it means watching that code too, not just your own.

On 11 May, a coordinated attack published malicious versions of more than 170 npm packages and two PyPI packages, 404 versions in all, including TanStack's routing ecosystem (SafeDep). In August a bigger one followed: the ChainDrop worm compromised more than 1,300 npm packages with around 2 billion combined monthly downloads, according to BleepingComputer.

Meanwhile Next.js, the React framework this site is built with, shipped security patches almost every month. Two of them came outside its schedule because of critical flaws: on 22 September, and on 14 October, when it fixed two unauthenticated remote code execution vulnerabilities (Next.js).

None of this is exotic for a company with a custom website. If your site was built with modern tools, it depends on hundreds of packages written by other people, and on a framework that gets patched every month.

What is a software supply chain attack?

An attack aimed not at your website directly but at the third-party code it depends on. The attacker compromises a legitimate package, for instance by taking over its author's account, and publishes a malicious version. Any project that installs that version runs the attacker's code, often on the developer's machine or the server that builds the site.

How ChainDrop got in

According to BleepingComputer, the attack began when someone took over the GitHub account of the maintainer of Keyv, a widely used caching library, and spread to other authors' packages. The infected packages added an instruction that runs before installation finishes: anyone installing an affected version ran the attacker's code without doing anything else.

That code went looking for credentials: GitHub and npm tokens, continuous integration secrets, keys for cloud services, databases and payment gateways. The report's advice is blunt: if an affected version was installed, treat the machine or server as compromised even if the package was removed later, rebuild it and change every key it could reach.

One detail matters more than the rest. The packages were built and published through their projects' legitimate GitHub Actions workflows, so they carried valid provenance. Provenance proves where and how a package was built; it does not prove the code is harmless.

Install with less trust

No single measure solves it, but several together close most of the doors these attacks came through:

  • A lockfile and an exact install. The project pins every package version, and the server that builds the site installs exactly those, not "the latest".
  • A few days before adopting a new version. Many malicious versions are spotted and pulled within hours or days. Unless it is a security fix, there is no rush to be first.
  • Install scripts off by default. If a package needs to run something on install, allow that one case rather than all of them.
  • Keys kept away from where things get installed. Publishing and production tokens do not live on anyone's laptop; the build server's tokens have minimal permissions and expire.
  • An inventory of direct dependencies. Every package the project asks for on purpose has a written reason, and the ones without one go.

Standing still is not protection

The opposite mistake is freezing the site "so nothing breaks". The 14 October vulnerabilities were in versions people already had installed: according to Next.js, one allowed remote code execution in apps using Cache Components, with no known workaround, and the other affected image optimisation on glibc-based Linux servers. The fix was upgrading to 16.4.1 or 15.5.28. Another batch arrived on 3 November, fixed in 16.4.5 and 15.5.29.

A website nobody updates keeps the flaws that are already public, and each month adds more.

A maintenance rhythm you can actually keep

Next.js schedules its security releases and announces them days in advance, and ships urgent ones when they are needed. That rhythm makes planning possible. This is how we organise it on the projects we maintain:

  1. A subscription to the security advisories of the framework and the main dependencies.
  2. A monthly patch window, aligned with the framework's calendar.
  3. An urgent path for critical flaws: assess them the same day and deploy within hours if the site is exposed.
  4. A check before release: build the site before and after the change and compare screenshots of every page type, in every language, on desktop and phone, plus console errors and a test that the forms still respond.
  5. A log of what was updated, when and why, so the next response is faster.

None of this is visible to visitors, which is why it is the first thing cut from a budget. When we talk about what a website costs, in what a custom website costs, this is what sits under "what happens after launch".

What to ask whoever maintains your website

  • Which version of the framework does the site run, and when was it last updated?
  • How does the team hear about a critical flaw, and how fast do they apply the fix?
  • Where are the production keys stored, and who has access?
  • What gets checked before an update goes live?

If the answer to the first is "no idea", so is the answer to the rest. What to do if something leaks is in the day after a data leak.

Not sure when your website was last updated? Write to us and we will check which version it runs and what it is missing.

FAQ

Is my website at risk if I never install anything new?

Yes, if the versions it already runs have known flaws. A framework's security patches fix vulnerabilities in versions that are already installed; not updating leaves them open. What is worth avoiding is adopting new versions on release day without need.

Does verified provenance guarantee a package is safe?

No. It proves where and how a package was built. In August 2026, malicious packages were published through the legitimate workflows of compromised accounts and carried valid provenance.

What should I do if I installed a compromised package version?

Treat the machine or server it was installed on as compromised even if the package has been removed: rebuild it from a clean base, change every key it could reach and review logs and repositories for unauthorised changes.

How often should a website be updated?

With a monthly patch window and an urgent path for critical flaws. The exact rhythm depends on the framework; what matters is that it is written down, someone owns it, and every update is checked before it goes live.

More insights