Very little business software today is written entirely from scratch. A typical web application uses a framework (such as Laravel, CodeIgniter, Django or React), dozens of libraries for payments, PDFs, email and image handling, and sometimes plugins or themes. These third-party pieces are called dependencies. They save enormous development time, but they also mean your application's security depends partly on code you did not write.
When security problems are found in popular libraries, they are usually published, along with fixed versions. Attackers then scan the internet for sites still running the old version. Keeping dependencies updated is one of the simplest and most effective security habits.
Types of dependencies
- Language and runtime: for example the PHP or Node.js version on your server.
- Framework: the core structure of the application.
- Libraries and packages: installed through package managers such as Composer or npm.
- Plugins and themes: common on WordPress and e-commerce platforms.
- Front-end assets: JavaScript and CSS libraries loaded in the browser.
- Server software: web server, database and operating system packages.
Understanding version numbers
Many projects use "semantic versioning" in the form MAJOR.MINOR.PATCH, such as 4.2.7:
- Patch (4.2.7 to 4.2.8): bug and security fixes; usually safe to apply quickly.
- Minor (4.2 to 4.3): new features, generally backward-compatible.
- Major (4 to 5): may include breaking changes and needs planning and testing.
Why owners delay updates, and why it backfires
The usual reasons are fear of breaking something, lack of time and "it works, leave it alone". The problem is that delayed updates accumulate. Skipping one minor version is easy to catch up; skipping three years of updates can turn into a major upgrade project, often under pressure after an incident.
A safe update process
- Keep an inventory. Package files such as
composer.jsonandpackage.jsonlist most dependencies; record plugins and server software too. - Check for known vulnerabilities. Package managers include audit commands that list dependencies with published security issues.
- Read the change notes. Look for security fixes and breaking changes.
- Update in a staging copy first. A staging environment is a private copy of your site used for testing.
- Run tests. Automated tests plus a manual check of key journeys: login, checkout, payments, reports.
- Back up before deploying. Take a fresh backup of code and database.
- Deploy and monitor. Watch error logs for a day or two after the update.
- Keep a rollback plan. Know how to return to the previous version quickly.
How often?
| Update type | Suggested rhythm |
|---|---|
| Critical security patches | As soon as practical after testing |
| Routine patch and minor updates | Monthly or quarterly batch |
| Major framework or language versions | Planned project, well before support ends |
| Vulnerability audit scan | Regularly, and on every release |
Reduce what you depend on
- Remove unused plugins and libraries; inactive code can still be exploited.
- Prefer well-maintained packages with active communities.
- Avoid "nulled" or pirated plugins and themes, which frequently contain hidden malicious code.
- Do not edit library code directly; your changes will be lost or block future updates.
Example
Pooja runs an online clothing store in Chandigarh. Her shop used an image upload library that had not been updated for a long time, and a published vulnerability allowed malicious file uploads. Her site was found sending spam. After clean-up, we set up a monthly update routine with staging tests, removed four unused plugins and added automated vulnerability checks. The routine takes a few hours a month, far less than the clean-up did.
Hosting matters too
Your server's language version and software also need updates. Managed hosting handles much of this for you. If you are planning a move to more current hosting, our partner DomainsRock offers hosting and VPS plans.
Let us handle it
Dependency updates are a core part of the maintenance work we provide alongside application audits. If your software has not been updated in a while, contact us for a review of what is outdated and a safe update plan.
0 comments