Skip to main content
Managing open source vulnerabilities is a major challenge because a large portion of your application — often cited as around 80% — comes from third‑party libraries. That makes supply chain security and automated dependency management critical to reducing risk.
A slide titled "Most of Your Code Is Borrowed" showing a large "80%" and a grid of small module icons, with several boxes highlighted in red (with warning marks) and a few in blue, illustrating reused versus original code.
This article explains how Dependabot uses the GitHub Advisory Database to detect and remediate vulnerable dependencies, and why that capability matters for secure software supply chains.

Why this matters for supply chain security

Modern applications are assembled from many components rather than written entirely in-house. A simple package manifest might look like:
Because most code in a typical application comes from open-source packages, vulnerabilities in those packages can directly affect your product. GitHub’s Dependabot automates detection and remediation by relying on the GitHub Advisory Database — a curated source that maps disclosed vulnerabilities (including CVEs) to package ecosystems.

How Dependabot works (overview)

Dependabot provides three related capabilities that operate at different stages of dependency lifecycle management:

Manifest examples Dependabot scans

Common manifest examples Dependabot inspects:

Dependabot alerts (passive detection)

What it does
  • Scans your repository manifests and lockfiles.
  • Cross-references package versions with the GitHub Advisory Database (the database of curated advisories and CVEs).
  • Creates alerts in the repository UI or the organization security center so maintainers know where vulnerable code exists.
When to rely on it
  • Use alerts as the first line of awareness. They are passive notifications that inform triage and prioritization workflows.

Dependabot security updates (automated remediation)

What it does
  • When Dependabot identifies a vulnerable dependency, it can open a pull request that upgrades the affected package to the minimum secure version.
  • The PR includes changelog/metadata where possible, and CI runs should validate the upgrade.
Example diff (upgrade to a patched version):
Benefits
  • Converts alerts into concrete, reviewable remediation steps.
  • Reduces time-to-patch by automating repetitive upgrade tasks.

Dependabot version updates (preventive maintenance)

What it does
  • Periodically opens PRs to update dependencies even when no vulnerabilities are known.
  • Reduces large upgrade jumps and the risk of breaking changes when a vulnerability appears.
Minimal .github/dependabot.yml example to run weekly:
Tip: Choose an update cadence (daily, weekly, monthly) that matches your CI capacity and release windows.
A simple horizontal version timeline titled "Why It Matters" showing your app at v12 (red, with a lightning icon) on the left and the current v17 (green) on the right, with intermediate versions v13–v16 shown as grey steps.

Practical guidance and best practices

  • Enable Dependabot alerts and security updates at the repository or organization level so you get automated detection and PRs for known vulnerabilities.
  • Configure Dependabot schedules, merge rules, and automerge policies consistent with your test coverage and release processes.
  • Use the organizations security center and package advisories to prioritize high‑severity alerts.
  • Keep dependencies reasonably current to reduce the blast radius when a vulnerability is disclosed — smaller, regular upgrades are easier to validate than large, infrequent jumps.
For production projects, enable Dependabot alerts and security updates, and choose an update schedule (daily/weekly/monthly) that fits your CI and release cadence to minimize upgrade friction when vulnerabilities are disclosed.

Watch Video