What outdated dependencies cost: one package.json, two years later

A package.json left alone for two years: 82 known advisories, 79 of them fixed without a major upgrade. Industry figures, Equifax, and keeping the cost low.

Dependencies6 min readBy
The dependency check of a package.json pinned in November 2024: 82 advisories on 11 packages, with next, axios, postcss, vitest and react against their latest versions
In this guide

An outdated dependency sends no invoice. Its cost shows up in two places: the known security advisories your project ships while it waits, and the upgrade work that grows with every release you skip. We measured both on one ordinary package.json left alone for two years, then set the result against the industry's own figures.

One package.json, two years later

We wrote the package.json of a typical Next.js project as it would have looked on 20 November 2024: eleven popular packages, each pinned to the newest stable version npm had published that day, as a lockfile pins them. On 20 November 2026, we pasted it into inlinr's dependency check, which compares each package with its latest version and lists the advisories of the GitHub Advisory Database that affect the version declared.

PackageNov 2024Nov 2026Advisories
next15.0.316.4.641 (5 critical, 11 high)
axios1.7.71.21.133 (13 high)
postcss8.4.498.5.334 (2 high)
vitest2.1.55.1.13 (2 critical)
zod3.23.84.6.71 (high)
react, react-dom18.3.119.3.10
typescript5.6.37.0.20
eslint9.15.010.15.00
tailwindcss3.4.154.3.50
prettier3.3.33.10.10
The project11 packages8 with a new major82 (7 critical, 27 high)
Each package at its newest stable version on 20 November 2024, then on 20 November 2026. Versions from the npm registry, advisories from inlinr's dependency check, both read on 20 November 2026. Advisories are added over time: the same file checked later may show more.

The 82 advisories fall on five packages: 7 critical, 27 high, 43 moderate and 5 low. Among the critical ones are an authorization bypass in Next.js middleware (CVE-2025-29927) and remote code execution in Next.js's image optimization API. In the same two years, these eleven packages published 652 stable versions between them, and eight of them moved to at least one new major version: eleven majors to cross in all, three of them for vitest alone.

Most fixes were one small upgrade away

For each advisory, the check gives the first version that fixes it. 79 of the 82 are fixed by a release within the major version the project already used: a patch or a minor upgrade, the kind a lockfile update brings without touching the code in most cases. The middleware bypass is a good example: Next.js 15.2.3 fixed it on 18 March 2025, four months after 15.0.3, in the same 15.x line. Only three need a major upgrade: two in vitest, one in zod.

So the security cost of these two years was avoidable at a low price, upgrade by upgrade. Sonatype finds the same across ecosystems: in its 2024 report, a fixed version existed for 95% of the vulnerable components downloaded, and only 0.5% of components had no update to move to.

The other cost is the one that waits. React 19, Next.js 16, Tailwind CSS 4, TypeScript 6 and 7, ESLint 10, zod 4 and vitest 3, 4 and 5 each ask for changes in the code, and each was easier to take alone, the month it came out, than together with the others two years later.

What the count does not say

An advisory affecting a version means the vulnerable code is in your project, not that your application reaches it: vitest's two critical advisories need its UI or API server listening, on a developer's machine. The count also stops at the packages the file declares; the hundreds of packages they pull in are not in it.

The industry's numbers

Our file is one project. Larger samples point the same way.

  • Black Duck, 2026. Its yearly audit of 947 commercial codebases found that 92% contain at least one open source component ten or more versions behind its latest release. Counted by component, 7% run the latest version and 41% are ten or more versions behind.
  • Sonatype, 2024. Nearly three years after Log4Shell, 13% of the downloads of Log4j were still of a vulnerable version, while a fixed version that broke nothing had existed all along.
  • Kula and colleagues, 2018. In a study of over 4,600 GitHub projects, 81.5% kept their outdated dependencies, and 69% of the developers they surveyed did not know their dependencies were vulnerable.

When the bill comes

The most expensive known case is Equifax. In March 2017, a vulnerability in the Apache Struts web framework was disclosed with its patch. One of Equifax's systems was not patched; attackers used the flaw from mid-May and stayed for about 76 days before anyone noticed, according to the U.S. Government Accountability Office. The personal data of about 147 million people was taken. In 2019, Equifax agreed to pay at least $575 million, and up to $700 million, in a settlement with the FTC, the CFPB and the states.

It is an extreme case, and the cause was a process that failed rather than a team that did not care: the alert never reached the people who installed patches. The mechanism is the one of the table above: a fix published, not applied.

The runtime ages too

The same holds for Node.js itself. Node.js 18 reached its end of life on 30 April 2025, and Node.js 20 on 30 April 2026. From that date, the project publishes no release for them, even for a vulnerability found and fixed in a newer line. Upgrading the runtime is one more major version on the list, with a date set years in advance.

Keeping the cost low

None of this asks to chase every release the day it comes out. What keeps the cost low:

  • Patch and minor upgrades on a schedule, every week or two, with a lockfile and your tests. They carry almost every security fix, and rarely ask for a change in the code.
  • Advisories by severity and by reach. A critical advisory in a package your server runs comes first; one in a tool that only runs on your machine can wait for the next round.
  • One major version at a time, its release notes and migration guide read before the upgrade, as described in upgrading a dependency with your assistant.
  • Runtime end-of-life dates in the calendar, since they are known years in advance.

What inlinr does

The dependency check runs the measure above on your own package.json, free and without an account: paste the file or give a public GitHub repository, and it lists each dependency's distance to its latest version and the advisories that affect the version you declare. Dependafeed then follows the projects you choose: their releases, deprecations and advisories, and an Upgrades tab that ranks what to do across all of them, security fixes first. Three followed projects are free.

Sources

See it on your own sessions

Follow a project in Dependafeed and its advisories and upgrades come ranked, security fixes first, with what each one changes.

Free for solo use · no source code leaves your machine

Read also