How it works
NextFix™ goes from your package list to a decision in seven steps. It saves what it found at each step, so you can check the reasoning behind any decision.
The pipeline
Seven steps
- Inventory. Every package your app installs, from
package-lock.json,yarn.lockorpnpm-lock.yaml(workspaces included), fromgo.modandgo.sum, or from pinned Python requirements and lockfiles, with a note of which ones are only used for building or testing and which ones your code depends on directly. Given a container image or a software bill of materials, it adds what ships in the image. - Vulnerability data. Each package is looked up in OSV, the open database of known vulnerabilities. For each vulnerability NextFix also fetches the EPSS score, an estimate of how likely it is to be exploited in the next 30 days, and checks the CISA KEV catalogue of vulnerabilities already being exploited. All of this is cached on your machine, and
--offlinereuses the cache. - Your code. NextFix reads your source files and builds a map of which function calls which. It finds the web addresses your app answers to, with their prefixes and login checks, for Express, Fastify, Koa, Flask, FastAPI, Django, net/http, Gin, Echo, Chi, Fiber, gorilla/mux and httprouter, and follows data from a request through the code, argument by argument, to the vulnerable call.
- Reachability. One of seven answers to “can this be reached?” per vulnerability, each with a confidence level. For Go, the
govulnchecktool adds the Go vulnerability database's own function data and its verdict on calls made inside dependencies. - Exposure. Whether the app is exposed to the network: a port opened in a Dockerfile or a Docker Compose file, or an app that only listens on the local machine.
- Decision. One of four buckets, a score from 0 to 100 for ordering, and the reasons in plain English.
- Output. A table in the terminal, a full JSON report, an OpenVEX document whose set-asides carry the standard justification
vulnerable_code_not_in_execute_path, and SARIF for GitHub code scanning.
Reachability
The seven answers
From safest to most serious:
| What NextFix found | In plain terms | Usual decision |
|---|---|---|
dev-only | The package is only used while building or testing the app. It is not in the version you deploy. | Set aside |
unused | The package is installed, but no file in your code uses it. | Set aside |
imported-not-called | Your code uses the package, but never calls the function that has the flaw. | Set aside |
imported-unknown-symbol | Your code uses the package, and NextFix does not know which function has the flaw. | Watch or Fix next cycle |
image-only | The package is in your container image but your application's code does not use it. NextFix makes no claim about code paths inside an image. | Watch or Fix next cycle |
called-unreached | Your code calls the flawed function, but no outside request can get to it. | Watch |
reachable | An outside request can get to the flawed function. | Fix next cycle or Fix now |
How sure it is
An answer is only as good as the data behind it, so each one shows how confident NextFix is.
- Confirmed. A person has identified which functions in the package carry this flaw.
- Derived. NextFix worked the functions out itself by reading the patch that fixed the flaw. It fetches the fix commit from GitHub, maps the changed lines to the functions that contain them, and follows those out to the names your code could actually call. The result is stored on your machine with the commit as evidence, and you can review and confirm it from the command line.
- Package level. Nobody has identified the flawed functions and there is no fix commit to read, so the answer stops at whether your code uses the package at all.
The decision
The rule behind each bucket
The model follows CISA's SSVC decision tree, with reachability standing in for “automatable” and exposure standing in for “mission and well-being”. Three terms the rules use: actively exploited means the vulnerability is on the CISA KEV list; likely exploited means its EPSS score is 10% or more; and CVSS is the standard severity score, from 0 to 10.
| What NextFix found | Rule | Decision |
|---|---|---|
| Not shipped, never imported, or never called | The flawed code is not in the execute path. | Set aside |
| Imported, flawed function unknown | Fix next cycle when there is any exploitation evidence or CVSS is 7 or more. Otherwise watch. | Watch / Fix next cycle |
| Only in the container image | Fix next cycle when actively exploited, or when a fix exists and it is likely exploited or CVSS is 7 or more. Otherwise watch. | Watch / Fix next cycle |
| Called, but no route reaches it | Fix next cycle when actively exploited. Otherwise watch. | Watch / Fix next cycle |
| Reachable, no login | Fix now when there is any exploitation evidence, or CVSS is 9 or more, or request data reaches the call and CVSS is 7 or more. Otherwise fix next cycle. | Fix next cycle / Fix now |
| Reachable, behind a login | Fix now when actively exploited. Otherwise fix next cycle. | Fix next cycle / Fix now |
Within a bucket, a score from 0 to 100 sets the order. How it decides puts the whole argument on one printable page. The complete model, with the scoring and the OpenVEX mapping, is in the decision model document in the repository.
Output
The same answer in a terminal
The dashboards are the easy way to read a scan. Everything in them is
also available from the command line, so a build pipeline can run
NextFix and read the result. Adding --fail-on Act makes the
command exit with code 3 when anything is decided fix now, which fails
the build.
NextFix 1.1.0 — express-shop 1.0.0 53 components, 20 advisories → 20 findings Act 1 · Attend 3 · Track* 2 · Track 14 80% of findings need no action right now, with evidence. Entry points: 4 (3 unauthenticated) · network: published on 3000 DECISION SCORE PACKAGE ADVISORY REACH ENTRY FIX Act 81 lodash@4.17.15 CVE-2021-23337 reachable POST /preview → 4.17.21 Attend 66 express@4.17.1 CVE-2024-29041 reachable GET /go → 4.19.2 Track* 42 lodash@4.17.15 CVE-2020-8203 called, unreached → 4.17.19 Track 10 moment@2.29.1 CVE-2022-24785 not imported → 2.29.2 Track 6 minimist@1.2.5 CVE-2021-44906 dev only → 1.2.6
Output from the sample application that ships with NextFix, cut down to fit. The JSON report and the OpenVEX file hold every finding.
Limits
What it cannot tell you
NextFix makes claims about your code, so it should be clear about where those claims stop.
- Thirteen web frameworks, and no others yet. NextFix reads other frameworks as ordinary code, but it does not recognise their routes as entry points. NestJS, Hapi and serverless handlers are not covered.
- Flaws inside the framework itself are not traced. A vulnerability in, say, Django's own request parsing runs on every request without your code calling it, so NextFix reports it as “imported, not called” and sets it aside. Treat that as a reason to upgrade on the normal cycle.
- Login checks are recognised by name and by shape. NextFix knows common guard names such as
requireAuthandpassport.authenticate, and it recognises an inline check that answers 401 or 403. A login check with an unusual name will not be seen and the route will look open, unless you add the name innextfix.config.json. - Some route handlers cannot be followed. When a handler is built in a way NextFix cannot resolve, the route still counts as an entry point, but no path can be traced through it, and the report says so.
- The request-data check follows names, not storage. Anything named
req,requestorctxcounts as request data, on purpose. Data that passes through object fields, a database or a global variable is not followed, and cleaned-up data still counts as risky. That is good enough to help with ranking, and it is not proof. - Some kinds of call are invisible. The map follows direct calls by name. It does not follow calls that choose the function at run time, calls through class inheritance, or calls through prototype chains, so a flaw reached only that way will not show up.
- Function data needs a fix commit. When a vulnerability's record has no link to the commit that fixed it, NextFix cannot derive the flawed functions and the answer stays at package level. For Go,
govulncheckfills some of that gap when it is installed. - Inside an image, no code paths. NextFix inventories what the image contains and looks it up, but it does not trace calls inside the image, and it does not yet say which Dockerfile line brought a package in.
- “Installed” means “listed in the package list.” NextFix does not account for build tools that strip unused code out of the deployed app.
A set-aside is a judgement with the evidence attached, and you can overrule it. The evidence is there so you can check the reasoning instead of taking the verdict on trust.