Article
Patching vulnerabilities in a small product: a weekly routine that keeps up
By Aymane Biti, DevOps and cloud
, 6 min read

Software vulnerabilities are now the most common way attackers get in: Verizon's 2026 Data Breach Investigations Report says 31% of breaches start with software vulnerabilities, ahead of stolen passwords. In a small product, most of that risk sits in code you didn't write: the libraries in your lockfile, the operating system packages in your container image and the framework itself. A weekly routine of about half an hour, with free tools, keeps it under control. This guide covers where the vulnerabilities hide, which tools find them, how to decide what to fix first and how to update without breaking the app.
Where vulnerabilities hide in a small product
The OWASP Top 10, the reference list of web application risks, now has "Software Supply Chain Failures" as its third category in the 2025 edition. For a typical web product that supply chain has four layers:
- Application dependencies: the npm, Composer or pip packages your code imports, and the packages they import in turn.
- The container image: the base image's operating system packages, which age even when your code doesn't change.
- The runtime and framework: the version of Node.js, PHP or Python and of your framework, each with its own support window.
- The build pipeline: the third-party actions and tools your CI runs with access to your code and secrets.
Free tools that find them
You don't need a paid security platform to start. These cover the four layers:
- GitHub's dependency features. The dependency graph, Dependabot alerts and security updates, and Dependabot version updates are available on all GitHub plans. When an alert is raised for a vulnerable dependency, Dependabot can open a pull request with the fix, and it also covers the GitHub Actions your workflows use.
- Your package manager's audit. npm audit sends a description of your dependencies to the registry and reports known vulnerabilities;
npm audit fixinstalls compatible fixes. Be careful with--force: it can install semver-major changes outside your stated ranges, and npm's own docs strongly recommend not using it unless you know exactly what you want. - An image scanner. Trivy, open source under the Apache-2.0 licence, scans container images, filesystems, Git repositories and Kubernetes for known vulnerabilities (CVEs), misconfigurations, secrets and software licences. Running it in CI on every image you build covers the operating system layer that dependency tools miss. If you run it through the trivy-action GitHub Action, pin it to the full commit SHA of version 0.35.0 or later: in March 2026 attackers force-pushed 76 of its 77 version tags to credential-stealing code (CVE-2026-33634).
Decide what to fix first
The first scan of an older project often lists dozens of findings. Fixing them in severity order alone wastes time on issues nobody can reach. Two free signals sharpen the order:
- Is it being exploited? CISA's Known Exploited Vulnerabilities (KEV) catalog is the authoritative list of vulnerabilities exploited in the wild, with 1,748 entries in October 2026, and CISA advises using it as an input to how you prioritise. Its June 2026 directive for US federal agencies ranks fixes with four questions worth borrowing: is the vulnerability on the KEV catalog, is the asset exposed to the internet, can every step of the exploit be automated, and how much control would an attacker gain? Anything in your product that appears on the catalog is a same-day fix.
- How likely is exploitation soon? EPSS, the Exploit Prediction Scoring System, estimates the probability that a published CVE will be exploited in the wild in the next 30 days. It is updated daily and free to use.
Then add what only you know: is the vulnerable code reachable from the internet, and does it touch customer data or payments? A high-likelihood issue in a public endpoint comes first; a low-likelihood one in a build-only tool can wait for the next scheduled update.
Starting on an older project
If the first scan is overwhelming, don't try to clear it in one sprint. Fix everything that appears on the KEV catalog first. Next, move the runtime and framework to supported versions, because that removes whole groups of findings at once and makes later updates smaller. Then let the weekly routine below work through the rest. A list that shrinks every Monday is a better outcome than a big upgrade project that stalls halfway and leaves the team afraid to touch dependencies again.
The weekly routine
- Monday, 30 minutes: review the open Dependabot pull requests. Merge patch and minor updates whose CI run is green; note major updates for planning.
- Every build: scan the image with Trivy in CI and fail the build on critical findings that have a fix available, so new problems can't ship unnoticed.
- Same day: anything that matches the KEV catalog, or sits on a public endpoint with a high EPSS score, is patched and deployed the day you see it.
- Monthly: rebuild and redeploy every image, even without code changes, so base-image fixes reach production.
- Quarterly: check the support dates of your runtime and framework, and schedule the upgrade before support ends, not after.
Each step is small on its own. Skipped for six months, they turn into a risky upgrade project, which is one of the most common forms of technical debt.
Update without breaking the app
The fear that an update will break something is the main reason teams fall behind. Three habits remove most of it:
- Tests that run on every pull request. A Dependabot update is just another pull request; with a reliable CI/CD pipeline, a green run means it is safe to merge.
- Committed lockfiles. The exact versions you tested are the ones that deploy.
- Small, frequent updates. One minor version a week is easy to review and to roll back; three years of updates at once is not.
Code your team writes needs the same attention, especially when an AI assistant wrote part of it; our article on security risks in AI-generated code covers that side.
Frequently asked questions
How fast should we patch a critical vulnerability?
If it is on CISA's KEV catalog, or sits on a public endpoint with a high EPSS score, the same day. Otherwise, include it in the next weekly update. Speed matters most where attackers are already active.
Can we merge Dependabot pull requests automatically?
For patch updates with a reliable test suite, it is a common choice. Keep minor and major updates as manual reviews, and never auto-merge when the CI run is red or flaky.
What is the KEV catalog?
It is CISA's list of vulnerabilities known to be exploited in the wild. It is free, and it is the best single signal for deciding which of many findings to fix first.
Do we need a paid security tool?
Not to start. GitHub's dependency graph, Dependabot alerts and updates, your package manager's audit and an open source scanner like Trivy cover dependencies, images and CI actions. Paid tools add features such as code scanning on private repositories and central reporting, which matter more as the team grows.
Sources
- 2026 Data Breach Investigations Report, Verizon, 2026
- OWASP Top 10:2025, OWASP Foundation, 2025
- GitHub security features, GitHub Docs, 2026
- About Dependabot security updates, GitHub Docs, 2026
- npm audit, npm Docs, 2026
- Trivy, Aqua Security, 2026
- Known Exploited Vulnerabilities Catalog, CISA, 2026
- BOD 26-04: Prioritizing Security Updates Based on Risk, CISA, June 2026
- trivy-action tags compromised (CVE-2026-33634), GitHub Advisory Database, March 2026
- Exploit Prediction Scoring System (EPSS), FIRST, 2026

