A dependency update moves your project to a newer version of a code package it relies on.
This guide is for students, new developers and anyone who looks after a website or app. You do not need to write code to be affected: if your business runs software, someone should be keeping its building blocks up to date, safely.
In short
- Most apps are built from code packages written by other people, and those packages get new versions.
- Updating brings security fixes, but each new version can also bring bugs or, rarely, harmful code.
- Tools such as Dependabot and Renovate can suggest updates for you as changes to review.
- A short wait before taking a brand-new version, called a cooldown, gives time for problems to be found.
What you will learn
- Explain what a dependency update is and why it matters.
- Tell a small update from a big one by its version number.
- Check that your project has a safe routine for updates.
- Ask whether update tools wait before taking new versions.
- Building block (dependency)
- a code package your project uses but did not write.
- Update helper (update bot)
- a tool that spots newer versions and suggests the change for a person to review.
- Waiting period (cooldown)
- a set number of days a tool waits after a new version comes out before suggesting it.
What is a dependency update?
Think of the apps on your phone. They update often. Most updates fix problems, but now and then one brings a new bug. Many people wait a few days before installing a big update, so others find the problems first.
Software projects work in a similar way. Most apps are built from packages, bundles of ready-made code that other people wrote and share. A package your project relies on is called a dependency.
The people who make those packages keep releasing new versions. A dependency update is when your project moves from the version it uses now to a newer one.
Many packages use a three-part version number, such as 2.4.1. The last number goes up for small bug fixes. The middle number goes up for new features that should not break anything. The first number goes up for changes that may break the code that uses it.[1]
Where the comparison stops working: your phone updates one app at a time, from a store that checks apps. A project can have hundreds of packages, and the public libraries they come from let anyone publish.
Why does it matter?
Old versions can hold known security holes that attackers look for. But rushing every new version in has risks too. A new release may have bugs, and an attacker who takes over a package can publish a harmful version. The aim is a steady routine, not speed alone.
If you look after a small website or app
What could happen: nobody updates the packages for two years, and a known security hole stays open.
Check this: ask when the packages were last updated, and who is meant to do it.
If you are new to development
What could happen: you accept a big update without reading what changed, and parts of the app break.
Check this: look at the first number of the version. If it changed, read the release notes first.
If you manage a development team
What could happen: an update tool merges a brand-new version on the day it appears, before anyone spots it is harmful.
Check this: make sure update tools wait a few days and that a person reviews what they suggest.
What does it look like?
Update tools usually suggest each update as a proposed change, called a pull request, that a person can review and accept. Here is a made-up one.
Example only. All values are made up.
Proposed change from the update bot Title: Update date-helper-EXAMPLE from 2.4.1 to 2.4.2 (1) Released: 6 days ago (2) Release notes: "Fixes a security issue in date parsing" (3) Automatic tests: 48 passed, 0 failed (4) Files changed: package.json, package-lock.json (5)
- Only the last number changes, so this is a small bug-fix update.
- The version has been public for a few days, so early problems have had time to surface.
- The release notes say what changed, in the words of the package's makers.
- The project's tests ran on the new version and passed.
- The package list and the lockfile (the record of exact versions) both change.
Why this is risky: skipping updates like this one leaves a known security hole open. Accepting every suggestion without a glance has risks too.
The safer way: accept small, tested updates on a regular rhythm. Read the notes for bigger ones. Let the tool wait a few days before suggesting brand-new versions.
How does it work?
Here is a typical update routine with an update bot.
- The check. On a schedule, such as weekly, the tool looks for newer versions of your project's packages.[2]
- The wait. The tool can wait a set number of days after a version is released. Dependabot's documentation says it waits three days by default for routine updates, but not for security fixes.[2]
- The suggestion. The tool opens a proposed change with the new version and its notes.
- The tests. The project's automatic tests run, to check that nothing obvious has broken.
- The review. A person reads the change and accepts it, or holds it back.

Two common update tools are Dependabot, which is built into GitHub, and Renovate, an open-source tool that works with several code hosting services. They are listed alphabetically.[2][4] Both can be set to wait before suggesting new versions. Renovate's documentation says this waiting period gives security researchers and automated tools time to catch harmful packages.[4]
Security fixes are handled a little differently. GitHub's documentation describes Dependabot security updates, which open a change for a package with a known security hole. They move it to the lowest version that has the fix.[3]
A worked example
Amara Sorensen runs a small charity that helps people find allotments. Her volunteer developer, Hal Kader, built its booking website two years ago.
Amara reads that out-of-date software is a common way in for attackers. She asks Hal a simple question: "When did we last update the site's building blocks?"
Hal checks. He has not updated anything since launch. A few packages have security fixes waiting, and one has moved to a new first number.
Hal starts with the security fixes. They are small updates, where only the last number changes. He runs the site's tests, and they pass. He clicks through the booking pages to be sure, then accepts the updates.
He leaves the big update for later, because a new first number can mean breaking changes. The release notes say some features work differently, so he plans an afternoon to test it.
Then he turns on an update bot, set to check weekly and to wait a few days before suggesting new versions. Each Monday, he spends half an hour reviewing what it suggests. Most weeks there are one or two small changes.
Amara adds one line to the charity's supplier notes: packages are updated on a weekly rhythm, and a person reviews each change. When Hal moves on, the next volunteer will know the routine.
Myths and mistakes
| What people think | What is true |
|---|---|
| If it works, leave it alone. | Old versions can keep known security holes open. Small, regular updates are easier than one huge catch-up. |
| Always take the newest version straight away. | A brand-new version has had little time to be checked. A short wait helps catch bad releases.[4] |
| The update bot handles security, so nobody needs to look. | The bot suggests changes. A person still decides what goes in. |
| All updates are the same size. | A change to the first version number may break things. Read the notes and test before accepting.[1] |
| Waiting means security fixes are delayed too. | Security updates can follow a faster path. Dependabot's default wait does not apply to them.[2] |
What can I do this week?
- Ask when your project's packages were last updated, and who owns that job.
- Turn on an update tool where your code is stored, set to a weekly check.
- Set a waiting period of a few days for routine updates.
- Agree that a person reviews each suggested change before it goes in.
Checklist
- Someone is named as responsible for keeping packages up to date.
- An update tool checks for new versions on a regular schedule.
- Routine updates wait a few days after release before they are suggested.
- Security fixes are handled quickly, on their own path.
- Automatic tests run on every suggested update.
- A person reviews each update before it is accepted.
- Big version changes get release notes read and extra testing.
- The lockfile is updated and saved with each change.
Common questions
How often should I update my project's packages?
A regular rhythm, such as weekly, works for many teams. Security fixes should go in sooner. Small, frequent updates are easier to test than a big catch-up after months. The right rhythm depends on how much testing your project has and how quickly you can review changes.
What is a dependency cooldown?
A cooldown is a waiting period before an update tool suggests a brand-new version. It gives other people and scanning tools time to spot a broken or harmful release. Dependabot uses three days by default for routine updates, and Renovate lets you set your own waiting time.[2][4]
Should I let the update tool accept changes by itself?
Only for low-risk cases, if at all. Some teams let small, tested updates go in by themselves after a waiting period. We suggest a person reviews anything else, especially new packages and big version changes. See the Dependency Update Automation Guide for the detail.
Is updating packages the same as patching?
They are close cousins. Patching usually means applying fixes to systems and programs you run, such as an operating system. Dependency updates fix the building blocks inside your own project's code. Both close known security holes and both need a steady routine.
Do update tools need any access?
Yes. An update tool needs permission to read your code and propose changes, and sometimes keys for private package libraries. That makes it a non-human identity (NHI): a digital identity that lets software connect to other systems without a person. Give it only the access it needs.
Where next?
Ready for the detail? Read the practitioner guide: Dependency Update Automation Guide. It goes further into setting up Dependabot and Renovate, cooldown and auto-merge rules, and securing the update bot and its pipeline.
Also useful:
- Package Managers for Beginners
- Lockfiles and Version Pinning for Beginners
- Software Composition Analysis for Beginners
- Patch Management for Beginners
Related NHI Mgmt Group resources: Dependency Pinning vs Version Ranges · Dependency Intake Review Checklist · Malicious Package and Dependency Confusion Guide
Key terms
- Dependency update
- Moving a project to a newer version of a package it relies on.
- Transitive dependency
- A package your project uses indirectly, because another package needs it.
- Semantic versioning
- A three-part version number that hints how big a change is: major, minor and patch.
- Dependabot
- GitHub's tool that suggests package updates as changes to review.
- Dependency cooldown
- A waiting period before a brand-new version is suggested or adopted.
- Pull request
- A proposed change to code that people and tests check before it is accepted.
- Lockfile
- A file that records the exact package versions a project installs.
Sources and further reading
- About semantic versioning. npm Docs, GitHub. https://docs.npmjs.com/about-semantic-versioning, accessed 28 Nov 2026.
- Dependabot options reference (schedule and cooldown). GitHub Docs. https://docs.github.com/en/code-security/reference/supply-chain-security/dependabot-options-reference, accessed 28 Nov 2026.
- About Dependabot security updates. GitHub Docs. https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates, accessed 28 Nov 2026.
- Minimum Release Age. Renovate Docs. https://docs.renovatebot.com/key-concepts/minimum-release-age/, accessed 28 Nov 2026.