1. How Dependabot detects vulnerabilities
Dependabot does not inspect running servers. It compares the dependency files in your repository with a vulnerability database.
- It reads dependency files. From files such as
package.json,package-lock.json,Gemfile.lock,composer.lock,requirements.txt,Dockerfileand GitHub Actions workflows, it builds a list of the packages and versions you use (the dependency graph). With a lock file, this includes the versions of indirect dependencies. - It checks the list against a vulnerability database. The GitHub Advisory Database records, for each package, which versions are affected and which version fixes the problem. If your list contains an affected version, you get a Dependabot alert.
- It opens a pull request with the fix. If a fixed version exists, it opens a pull request that updates the version in the lock file. The pull request includes a summary of the vulnerability and the changelog, so you can merge it once tests pass.
In short, it compares the versions written in your repository with versions known to be vulnerable. Because the mechanism is simple, it needs no extra cost and no server-side setup.
2. Where the settings are
Open the repository's Settings and choose Advanced Security under "Security and quality" in the left menu. The two blocks covered here are "Dependency Scanning" and "Dependabot".

In this state, alerts arrive but no fix pull requests are opened automatically. Section 3 shows the settings we recommend changing to.
3. What each item does and what to turn on
| Item | What it does | Recommended |
|---|---|---|
| Dependency graph | Builds the list of packages and versions you use. Required for Dependabot alerts | On |
| Automatic dependency submission | Detects and records dependencies resolved at build time that lock files do not show. For select ecosystems | Only if needed |
| Dependabot alerts | Alerts you when you use a vulnerable version | On |
| Malware alerts | Alerts you when a malicious package, such as a hijacked or fake package, is among your dependencies | On |
| Dependabot auto-triage rules | Rules that automatically dismiss alerts or target them for pull requests | None needed at first |
| Prevent direct alert dismissals | Requires a request to organization owners or security managers to dismiss an alert | Off is fine for small teams |
| Dependabot security updates | Automatically opens update pull requests for alerts with a fix | On |
| Grouped security updates | Combines those pull requests into one per package manager and directory | On |
The most effective item is Dependabot security updates. Alerts only tell you about a problem; nothing is fixed until someone investigates and updates. With pull requests opened automatically, all that is left is checking the tests and merging.
Malware alerts cover a different threat from vulnerabilities. Maintainer accounts being hijacked to publish versions with malicious code, and installing fake packages with similar names, have happened repeatedly on npm.
With Grouped security updates on, several alerts raised at the same time arrive as a single pull request, which cuts review time.
4. Grouping version updates with dependabot.yml
The settings in section 3 cover updates when a vulnerability is found (security updates). To update outdated dependencies regularly even without a vulnerability, add .github/dependabot.yml to the repository and configure version updates.
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
npm-minor-and-patch:
update-types: ["minor", "patch"]
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"This example combines npm minor and patch updates into one weekly pull request, and updates GitHub Actions monthly. Major version updates often include breaking changes, so they stay out of the group and are reviewed in separate pull requests.
Turning on version updates without any grouping tends to bury you in one pull request per package. Splitting it into "merge vulnerability fixes right away, batch regular updates on a schedule" makes it easier to keep up.
5. What Dependabot cannot protect against
Dependabot only looks inside the repository. The following are out of scope and need to be managed another way.
| Out of scope | Examples | How to manage it |
|---|---|---|
| Software installed on servers | nginx, PHP itself, OpenSSL, packages installed with dnf | AWS Inspector, OS security updates, vendor announcements |
| Managed services and SaaS | RDS, WordPress on Kinsta | Provider notices and reviewing your own settings |
| Code you wrote | SQL injection, missing authorization checks | Code review, code analysis such as CodeQL, security assessments |
| Vulnerabilities not yet disclosed | Before a CVE is published | Defense in depth, such as a WAF |
For example, the nginx vulnerabilities and the PHP security release of November 2026 affect server-side software, so Dependabot cannot detect them. Think of it as a split: Dependabot for application dependencies, Inspector and OS updates for servers.
6. Tips for day-to-day use
- Commit lock files. Without them, Dependabot cannot see the versions you actually use.
- Set up automated tests and CI. Without a way to tell whether merging will break anything, pull requests get left alone. Running builds and tests on every pull request speeds up the decision.
- Handle vulnerability pull requests first. Look at the severity (Critical, High and so on) and whether you actually use the affected feature, and start with the highest priority.
- Record why you dismiss an alert. Even when you decide not to act, for example because you do not use the affected feature, choosing a dismissal reason lets you trace the decision later.
Related links
We handle system maintenance, including dependency updates and server vulnerability response, through our AWS operations and maintenance service. To have your current settings reviewed, contact us through our free security assessment.
References
Frequently Asked Questions
QDoes Dependabot cost money?
Dependency graph, Dependabot alerts and Dependabot security updates are available at no extra cost, including for private repositories. Code Security and Secret Protection, on the same settings page, are billed per active committer over the last 90 days for private and internal repositories.
QAre Dependabot pull requests merged automatically?
No. Dependabot only opens a pull request that updates to the fixed version; a person decides whether to merge it. Automatic merging needs a separate setup, for example with GitHub Actions, and we do not recommend it until your tests are solid.
QWhat happens if lock files such as package-lock.json are not committed?
Dependabot reads versions from dependency files, so without a lock file it cannot see the exact versions you use, especially those of indirect dependencies. Keep lock files in the repository.
QCan it detect vulnerabilities in nginx or PHP installed on the server?
No. Dependabot only looks at dependency files in the repository. Manage the server's OS and middleware separately, with AWS Inspector, OS security updates and vendor announcements.
