Engineering

How to run a dependency audit that engineers will read

Editorial · Reveneau · November 28, 2026

How to run a dependency audit that engineers will read

Most dependency audits produce a document that nobody reads past the first page. The output of a package scanner lists every finding in every dependency, direct and transitive, sorted by the scanner's own severity scale. The resulting report has 300 or 400 lines, and the team looks at it, resolves to deal with it next sprint, and forgets about it until the next audit produces a longer report.

The problem is not that scanners find too many things. The problem is that the report is treated as the output of the audit. A scanner produces an inventory. An audit should produce a prioritised list of decisions. These are different artefacts and only the second one leads to any action.

What an audit is actually trying to answer

A dependency audit is trying to answer four questions, in order of importance:

Which known vulnerabilities in our dependencies actually matter for our product. Which dependencies have become risky to depend on, independent of any specific vulnerability. Which licences in our dependency tree are incompatible with how we ship the product. Which dependencies could simply be removed because the cost of carrying them is larger than the value they provide.

Each of these is a different question with different evidence, and a report that mashes them together is harder to act on than a report that separates them. The four-question structure makes it obvious which findings belong in which section, and which actions are available for each.

Which vulnerabilities actually matter

A scanner reports every known vulnerability in every package in the dependency tree, at every severity level. On a typical web application, this is a few hundred findings. On a complex system, more.

The number that actually matters is usually between five and twenty. The rest are findings in code paths that your product does not use, in scenarios that do not apply, or in packages that are present only transitively and would require an attacker to already be inside your system to exploit.

To cut the noise, apply three filters to every finding, in order:

Is the vulnerable code path reachable from any entry point in our product. For a vulnerability in an XML parser, the question is whether the product parses XML at all. If it does not, the finding is in a package you have but a feature you do not use.

Is user-controlled data flowing into the vulnerable code path. A vulnerability triggered only by data the application controls internally is different from one that can be reached by a crafted request from the public internet. Both are worth noting. Only the second is a priority.

Is there a public exploit, or a credible path to one. A known vulnerability without a working exploit is a lower-priority concern than one with a public proof of concept. The CVSS score does not always capture this: a CVSS 9.8 with no exploit path in your product is less urgent than a CVSS 6.5 that is being actively used against similar products.

A finding that answers yes to two or three of these filters is a priority. A finding that answers no to all three can wait for a routine upgrade cycle. This is a rough screen, and it is enough to turn a flat list of 400 findings into a ranked list of twenty.

Which dependencies have become risky

A package can be low-risk today and high-risk a year from now, without any vulnerability being discovered in it. The risk comes from the package's health as a project: whether anyone is still maintaining it, whether the maintainers are responsive, whether new security findings will be fixed if they are reported.

For each direct dependency, check four signals: date of the most recent release, date of the most recent commit to the main branch, number of active maintainers in the past twelve months, and responsiveness to security reports. A package with no release in two years and a single inactive maintainer is a package that will probably not be patched when the next vulnerability is discovered. A package with monthly releases and an active maintainer roster is in a different risk category.

Transitive dependencies matter less for this analysis because they are controlled by their parent. If a direct dependency is in good health, it will presumably upgrade its own transitive dependencies over time. If the direct dependency is unmaintained, its transitives are at double risk.

The output of this analysis is a short list of direct dependencies that look like future problems, with a recommended action for each: upgrade to a maintained fork, replace with an alternative package, or replace with in-house code.

Which licences need attention

A licence audit is often the simplest part of the exercise to execute and the easiest to skip. The scanner outputs a licence for every package in the tree. You compare each against your product's allowed-licence list. Anything not on the list is a finding.

The allowed list depends on the product: an internal tool can accept strong copyleft licences that a hosted commercial product cannot, and an open-source project can accept licences that an embedded product cannot. The point is to have a written list that reflects the product's actual deployment model, and to run the scanner against that list every quarter.

The findings worth attention are: strong copyleft licences (GPL, AGPL) in a commercial product that ships as a service, dependencies with no licence file at all, licences the team has not seen before. The first two are usually a change required. The third is usually a question for whoever on the team is responsible for licence decisions.

For reference on broader software supply chain concerns, see the cost of a dependency you did not choose.

Which dependencies could be removed

The most underused outcome of a dependency audit is removal. Teams spend time deciding whether to upgrade, replace, or patch a dependency, and rarely consider whether the dependency should be there at all.

Three signals suggest a dependency is a candidate for removal: fewer than three direct uses in the codebase, a function that could be replaced with twenty or thirty lines of in-house code, and a size (lines of code, transitive dependency count, or bundle size) that is out of proportion with the value it provides.

A utility library that provides a single function used in two places, but pulls in forty transitive dependencies, is a candidate for removal. The same function reproduced in-house removes the package, removes its transitives, and removes everything that might ever go wrong with any of them. The cost is twenty lines of code the team now maintains.

The audit should produce a short list of removal candidates with the expected effort. On a mature codebase, this list is often between three and eight packages, and acting on it is one of the cheapest sources of codebase improvement available.

The output document

The audit itself should be a short document, one or two pages, that a non-security engineer can read in ten minutes. The structure:

A paragraph of overall state. How many direct dependencies, how many transitives, how many findings in total, how many that matter.

A table of the top ten vulnerability findings, with affected package, severity, whether the vulnerable path is reachable, and the recommended action. One line per finding, with a link to more detail for those who want it.

A short list of risky dependencies, with the reason each is risky and the recommended action.

A list of licence findings, usually two or three items, with the recommended action.

A list of removal candidates, with the expected effort to remove each.

The full scanner output, if it serves any purpose, is an appendix for anyone who wants to review the raw data. It is not the audit.

How the audit becomes action

An audit with no owner becomes a document that lives in a folder and is read once. An audit with an owner becomes a backlog.

Assign each finding to a specific engineer or team, with a target date. For priority findings, the date is short, usually two weeks or less. For routine upgrades, the next scheduled maintenance window. For removals, the next quarter. For decisions that need discussion, a meeting to make the decision.

The audit document should be reviewed at the same frequency as it is produced. Quarterly. At each review, the previous audit's actions are checked: closed, deferred with reason, or still open. An audit with a pile of open items from the previous three quarters is not working.

Preventing the next audit from finding the same things

The best predictor of what the next audit will find is what the current audit found. If the team keeps discovering unmaintained dependencies, the gap is in how dependencies get added, not how they get reviewed.

Make the decision to add a new dependency a reviewable one. A new direct dependency goes through a pull request that includes: why the dependency, what alternatives were considered, the licence, the maintenance status of the project, and the direct and transitive size. Usually three or four sentences. But it means a dependency that gets added has been considered, and the reasoning is in the commit history for the next audit to refer to.

For teams using AI agents to write code, this matters more rather than less. Agents will reach for dependencies as a way to solve problems, often reaching for packages that are badly maintained or unnecessary. A dependency added by an agent still needs a human review of whether it should be there. See the cost of a dependency you did not choose for more on this.

The audit that works

A dependency audit that engineers will read and act on is short, prioritised, and clearly organised around decisions rather than inventory. It answers four questions. It produces a one-page summary of what to do. It assigns owners. It is reviewed at the next scheduled interval to check that the actions happened.

Everything beyond that, including the 400-line scanner output, is supporting material. Teams that confuse the supporting material for the audit itself produce reports nobody reads. Teams that treat the audit as a decision exercise produce codebases that are visibly healthier a year later.

Common questions

What is a dependency audit?

A dependency audit is a review of the third-party packages a product relies on, looking at which versions are in use, which have known vulnerabilities, which are no longer maintained, which have significant licensing or operational risk, and which are candidates for removal. It covers direct dependencies that the team added on purpose and transitive dependencies that came along with them. The goal is to produce a prioritised decision list, not an inventory.

How often should a team run a dependency audit?

For most products, once a quarter as a dedicated exercise, plus continuous automated scanning for high-severity vulnerabilities. The quarterly audit is for the questions a scanner cannot answer: is this package still the right choice, is the maintainer still active, is the licence still compatible with the product's use. The continuous scan is for urgent vulnerabilities that cannot wait for the quarterly cycle.

What makes a dependency audit useful versus just noisy?

Prioritisation. A scan that produces 400 findings and no indication of which 15 matter is not useful. A good audit ranks every finding against three questions: does the vulnerable path run in our product, is user data exposed, and does it have a public exploit. A finding that answers no to all three can wait. A finding that answers yes to two or three cannot.

What is the difference between a direct and a transitive dependency?

A direct dependency is a package the team added to the product themselves. A transitive dependency is a package pulled in by a direct dependency. Most of the vulnerabilities a scanner finds are in transitive dependencies, which are harder to upgrade independently because they are controlled by whichever direct dependency pulled them in. The fix often involves upgrading the direct parent rather than the transitive child.

How do you decide which dependencies to remove?

Look for packages that have fewer than three direct uses in the codebase, that have had no release in 18 months or more, or whose maintainer is a single person who has been inactive on the project for more than a year. Each of these is a signal that the dependency is carrying more risk than it is worth. The removal is usually cheaper than most teams expect, because packages that are barely used can often be replaced with a small amount of in-house code.

What is an unmaintained dependency and why does it matter?

An unmaintained dependency is a package with no recent commits, no responses to issues, or no releases in a long time. The risk is that a vulnerability discovered in it will never be fixed by its maintainers, which means the team has to either patch it themselves, fork it, or replace it. A product that depends on unmaintained packages has accumulated technical debt it has not yet seen the cost of.

How do you audit licences?

Produce the list of every direct and transitive dependency with its licence, then flag any that are not on the product's allowed-licence list. The most common flags are strong copyleft licences (such as AGPL) in a commercial product, or unknown licences where the package has no licence file at all. A licence audit does not require legal expertise to run, just a current list of allowed licences and a scanner that reports the licence of every package.

What should the audit output look like?

A short document that a non-security engineer can read in ten minutes. A paragraph of overall state. A table of the top ten findings with severity, affected package, and recommended action. A list of packages to remove. A list of packages to upgrade. A list of packages that need a human decision. The full scanner output, if it is useful, goes in an appendix. The point is the decisions, not the inventory.

How do you handle a vulnerable dependency that cannot be upgraded?

Document the finding, confirm whether the vulnerable code path is actually reachable from your product, and if it is, apply a mitigation that does not require the upgrade: input validation, a feature flag that disables the affected feature, or a patch applied in your own fork of the dependency. If the path is not reachable, record the reasoning and continue. Not every known vulnerability requires action, but every one requires a documented decision.

How do you prevent the dependency sprawl that audits keep discovering?

By making the decision to add a new dependency a reviewable one. A dependency added through a single pull request with no discussion becomes a dependency nobody owns. A dependency added after an explicit review that considered alternatives, the maintenance status, and the licence is a dependency with a known rationale. Over a year, the difference in codebase health between the two approaches is significant.

Start a project