# Dependency Scanning

> A check of the packages you use. It looks for known holes.

**Field:** Software Development  
**Category:** Security  
**Also known as:** npm audit, Dependabot, Software Composition Analysis, SCA

## Think of it like

Think of it like a list of foods that were called back. You check your cupboard against it.

## Definition

Dependency scanning checks your packages against lists of known holes. A tool reads your lock file and compares each package and version with CVE data. It then reports which ones are risky and which version fixes them. npm audit, pip-audit and GitHub's Dependabot all do this. Run it on every change. It catches new holes in code you did not write.

## Example

Emma runs npm audit on an old project. It flags lodash 4.17.20 as high severity and says npm audit fix will update it.

## Example code

```console
$ npm audit
lodash  <=4.17.23
Severity: high
fix available via `npm audit fix`
1 high severity vulnerability
```

The scan found one risky package and the command that fixes it.

## Why it matters

Most of an app's code comes from packages. Scanning is how you learn when one of them turns dangerous.

## Common mistake

Running the scan once and never again. New holes are found every day in packages that were fine last week.

## Three principles

- **Checks your packages.** Against known holes.
- **Names the fix.** Which version is safe.
- **Run it every change.** New holes appear daily.

## Related terms

- [Supply Chain Attack](https://learn.benibix.com/term/development/supply-chain-attack)
- [Common Vulnerabilities and Exposures (CVE)](https://learn.benibix.com/term/development/cve)
- [Package Manager](https://learn.benibix.com/term/development/package-manager)
- [Dependency](https://learn.benibix.com/term/development/dependency)
- [DevSecOps](https://learn.benibix.com/term/development/devsecops)

---

Source: https://learn.benibix.com/term/development/dependency-scanning
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
