Glossary · Vulnerabilities and prioritization

Reachability analysis

Reachability analysis is the practice of determining whether a known vulnerability in a dependency can actually be exercised by an application, for example because the vulnerable function is called on a path the application executes.

A software composition analysis scanner reports that a vulnerable version of a package is present. Reachability analysis tries to narrow that to the vulnerabilities that matter for this application. It comes in levels of increasing cost and precision:

  • Dependency reachability: is the package shipped at all, or only used in development and tests? Is it a direct dependency or pulled in transitively?
  • Package or module reachability: does the application import the affected module?
  • Function or symbol reachability: does a call graph, built by static analysis, connect the application's entry points to the specific vulnerable function named in the advisory?
  • Runtime reachability: was the vulnerable code observed loading or executing in a running workload?

How it is used in practice

Teams use reachability to cut a long list of dependency findings down to a short list worth fixing first, and to justify VEX statements such as "vulnerable code not in execute path". It is usually combined with exploitation signals like EPSS and KEV: a reachable, exploited vulnerability is the top of any queue. Function-level analysis depends on advisories that name the vulnerable symbol, which many do not, and on a call-graph builder for each language.

Common pitfalls

  • Treating "unreachable" as "safe". Static call graphs miss reflection, dynamic dispatch, plugins, deserialization and configuration-driven code paths. An unreachable verdict is a ranking signal, not proof.
  • Ignoring development dependencies entirely. Test and build tooling runs in CI with access to source code and secrets, so a vulnerability there is lower priority, not zero.
  • Assuming coverage is uniform. Precision varies widely by ecosystem; a tool may do function-level analysis for one language and nothing for operating-system packages.
  • Letting it hide findings. A reachability result that changes when code changes needs re-evaluating on every build.

How TrustIvan relates to it

TrustIvan does not perform call-graph or function-level reachability analysis, and never claims that a vulnerable function is or is not reached. It records two narrower signals from data the scanner already reads, and uses them only to lower a finding's priority, never to hide it. Dependency scope: where the lockfile records the distinction (npm, Yarn, pnpm and Bun lockfiles, Composer, Poetry, uv, Gradle and pubspec), a finding is marked runtime or development, and a development-only package scores at 0.6 of its risk; formats that do not record it, such as requirements.txt, go.mod, Maven and OS packages, are treated as shipped. Entrypoint: for a container image, a finding is marked as not loaded only when the image's own configuration positively shows the entrypoint process cannot load the package, for example npm's bundled dependencies under a node /app/server.js entrypoint, or an interpreted-language package beside a Go binary; it then scores at 0.7. Shell-script entrypoints and OS packages are never marked. See Reachability and Find where a package is used.

Related terms

Guides on Reachability analysis

All glossary terms

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.