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
- Software composition analysis (SCA) Software composition analysis (SCA) identifies the third-party and open-source components inside an application or artifact, then reports the known vulnerabilities and license obligations attached to each one.
- SAST (static application security testing) Static application security testing (SAST) analyzes an application's own source code, bytecode or binaries for security weaknesses without executing it, such as injection, unsafe deserialization or disabled certificate checks.
- EPSS (Exploit Prediction Scoring System) EPSS, the Exploit Prediction Scoring System from FIRST, is a model that estimates the probability that a published CVE will see exploitation activity in the next 30 days, expressed as a score between 0 and 1 and a percentile.
- VEX (Vulnerability Exploitability eXchange) VEX (Vulnerability Exploitability eXchange) is a machine-readable statement of whether a specific product is affected by a specific known vulnerability, with a status and, when the answer is no, a justification.
- CVSS (Common Vulnerability Scoring System) CVSS, the Common Vulnerability Scoring System maintained by FIRST, is a standard method for rating the technical severity of a software vulnerability on a scale from 0.0 to 10.0, derived from a vector of metrics.
Guides on Reachability analysis
- Container Vulnerability Management: From Scan to Verdict How container vulnerability management works end to end: a finding identity that survives rescans, a lifecycle, and a policy verdict a pipeline can act on.
- How to Prioritize Container Vulnerabilities with EPSS and KEV CVSS says how bad a vulnerability would be; EPSS and CISA KEV say whether anyone is exploiting it. How to join all three into one container fix order.
- Writing a VEX Statement: When "Not Affected" Is Defensible How to write an OpenVEX statement, what each not_affected justification needs as evidence, and the claims that look like VEX but are really risk acceptance.