> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reachable by inclusion

> Learn which vulnerabilities Endor Labs treats as reachable as soon as your project includes the package, and how policies and filters handle these findings.

Some vulnerabilities affect your application as soon as your project includes the package. They need no call to a vulnerable function. Endor Labs labels these findings **Reachable by Inclusion** and counts them as reachable. Your existing reachability policies, filters, and dashboards include them.

## Why some vulnerabilities need no call path

[Function-level reachability](https://docs.endorlabs.com/scan/sca/reachability-analysis.md#function-level-reachability) looks for a call path from your code to a vulnerable function. Some vulnerabilities have no such path to find. Examples include the following cases:

* **Data in the package**: The package ships data that's the risk itself. For example, a certificate bundle can include a compromised certificate authority. It puts every TLS connection that trusts the bundle at risk.
* **Code that runs on its own**: The package runs the vulnerable code without a call from your code. For example, a server package runs it when it handles a network request.
* **Dynamic invocation**: The package runs the vulnerable code through reflection or dynamic invocation. Call graph analysis can't follow these calls.

Without the label, call graph analysis marks these findings unreachable or potentially reachable. A policy that matches only reachable findings then skips them. Endor Labs security researchers flag these advisories in the Endor Labs vulnerability database.

## How Endor Labs labels these findings

A finding for a flagged advisory gets the following attributes:

* **Reachable by Inclusion**
* **Reachable Function**
* **Reachable Dependency**

The finding never gets an unreachable or potentially reachable label. The label doesn't depend on a call graph. Findings get it from full scans and from scans that fall back to [pre-computed reachability](https://docs.endorlabs.com/scan/sca/reachability-analysis/pre-computed-reachability.md). Existing findings get the label the next time a scan evaluates them.

## What the finding page shows

The finding page shows the label in the following places:

* **Attributes**: **Reachable by Inclusion** appears in place of **Reachable Function** and **Reachable Dependency**.
* **Call Paths**: The tab states that the finding needs no call path.
* **Risk Details**: The summary ends with "The vulnerability is reachable whenever the package is included."

![Finding page with the Reachable by Inclusion attribute and the Call Paths tab explaining that no call path is needed](https://mintcdn.com/endorlabs-b4795f4f/23IMD0Xk2Mc7UR3w/images/scan/sca/reachable-by-inclusion-finding.webp?fit=max\&auto=format\&n=23IMD0Xk2Mc7UR3w\&q=85\&s=624fe2987f734aaedff4bece028a6881)

## Policies, filters, and dashboards

The following features count these findings as reachable:

* **Action policies**: A policy that matches **Reachable Function** or **Reachable Dependency** includes these findings. A policy that matches only **Potentially Reachable Function** or **Potentially Reachable Dependency** excludes them. See [Vulnerabilities](https://docs.endorlabs.com/platform-administration/policies/action-policies/templates.md#vulnerabilities) to set the reachability parameters.
* **Finding filters**: **Reachable Function** set to **Yes** includes these findings. To list only these findings, select **By Inclusion** under **Reachable Function** in the **Attributes** filter.
* **Dashboards**: The reachable vulnerability counts include these findings.

Use the following filter to query these findings with the API.

```bash theme={null}
spec.finding_tags contains ["FINDING_TAGS_REACHABLE_BY_INCLUSION"]
```

## Limitations

Endor Labs doesn't apply the label to the following findings:

* **Test dependencies**: Findings in test dependencies keep the **Test** attribute and get no reachability label.
* **Imported SBOMs**: Findings from imported SBOMs don't get the label.
* **Container findings**: Container findings don't get the label, even when you scan with `--os-reachability`. A policy or filter that matches on function reachability skips them. See [Container reachability](https://docs.endorlabs.com/scan/containers/container-reachability.md) to learn how container findings get a dependency reachability label.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.