Check 09.07 · Security and infrastructure

Update the CMS, plugins and dependencies

Take inventory of the CMS, plugins, dependencies and PHP, then set up regular, tested updates on WordPress, Drupal, PrestaShop, Laravel or Next.js.

Priority
Critical
Difficulty
Intermediate
Estimated time
2 h, then ongoing
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

A site runs on a stack of software: the CMS or framework, its plugins and themes, the libraries installed by Composer or npm, the language (PHP, Node.js) and the server's operating system. This check consists of listing them, applying security patches quickly and other updates on a fixed schedule, always after a backup and a test. Once it is done, every component runs a maintained version, and a published vulnerability is fixed on the site within days, not months.

Why it matters

Most website hacks do not target a particular site: bots sweep the web looking for a specific version of a plugin or CMS as soon as a vulnerability is published. A site that is not updated ends up in their nets sooner or later.

The consequences for visibility are severe and fast: thousands of spam pages created in hidden directories, links injected into the content, redirects reserved for visitors coming from Google, malware. Google may then show a warning in its results or a Safe Browsing screen in Chrome, and Search Console reports the problem in its “Security issues” report. Cleanup, the review request and traffic recovery take weeks. Generative engines, which read pages, may also pick up the injected content.

Google explicitly recommends staying up to date with patches and keeping a list of the software and plugins in use, with their versions. Updating also has a cost: an update can break a feature, or change a template, a canonical tag or a noindex directive. Hence the method: back up, test, deploy, check.

What it improves

  • Security Known vulnerabilities closed before their automated exploitation.
  • Visibility No indexed spam pages, no warning in the results and no temporary removal of pages.
  • Performance Recent versions of PHP and CMSs are generally faster. The effect varies by site.
  • Maintenance cost Small, regular updates cost less than a migration across three major versions at once.
  • Rankings No direct effect; the effect is to avoid hacking and its aftermath.

How to check

In a few minutes, on the production site:

  • CMS and plugin versions: the CMS dashboard (Dashboard > Updates on WordPress, Reports > Status report on Drupal).
  • WordPress from the command line:
wp core check-update
wp plugin list --update=available --fields=name,version,update_version
wp theme list --update=available --fields=name,version,update_version
  • Composer project (Laravel, Symfony, Drupal, Magento):
composer audit
composer outdated --direct
  • npm project (Next.js, Nuxt, Astro):
npm audit --omit=dev
npm outdated
  • PHP version: compare the version shown by the panel or by php -v with the supported versions page on php.net. A version that has left security support no longer receives any patch.

Compliant result: no vulnerability reported by composer audit or npm audit in production, no plugin more than one cycle behind, a PHP version that is still maintained, and no component abandoned by its developer.

To detect files modified without your knowledge, WordPress provides wp core verify-checksums and wp plugin verify-checksums --all.

How to implement

Before you start

1. Inventory. One row per component, updated with every change:

Component Type Installed version Gap with the latest version Alert source Auto-update Owner Last check
WordPress CMS (to record) Up to date WordPress.org blog Minor Agency 2026-11-20
WooCommerce Plugin (to record) 1 minor version behind WordPress vulnerability database No, testing required Agency 2026-11-20
Custom child theme Theme 2.1 Not applicable Internal No Developer 2026-11-20
PHP Language (to record) Security support until the date given by php.net php.net By the host Host 2026-11-20
laravel/framework Composer dependency (to record) 2 minor versions behind composer audit, Dependabot Weekly, via pull request Developer 2026-11-20
Old form plugin Plugin (to record) Abandoned by its developer None No Agency To be replaced

Record the exact versions in the column provided: the gap and the maintenance status matter more than the number.

2. Alert sources. Subscribe to your CMS's security announcements (WordPress.org blog, Drupal security advisories, Joomla and PrestaShop announcements, Adobe security bulletins for Magento), to the alerts from your security plugin or your host, and to the dependency alerts from GitHub or GitLab.

3. Schedule. A common convention, to be adapted:

  • Security patch for an actively exploited or critical vulnerability: within 24 to 72 hours.
  • Minor and patch versions: every week or every two weeks, in a batch.
  • Major versions: planned, on a test environment, with acceptance testing.

4. Safety net. A verified backup just before each batch (see automate backups and test restores (opens in a new tab)), a staging copy for major updates, and a post-deployment checklist: home page, main templates, contact form, checkout flow, robots and canonical tags, sitemap.

5. Fewer components. Each unnecessary plugin is one more attack surface: remove unnecessary plugins (opens in a new tab) before organizing updates.

Warning: a plugin removed from its official repository, or not updated for a long time, will receive no more patches. Updating it is impossible: it has to be replaced.

WordPress

Versions WordPress 6.4 to 7.1, WP-CLI 2.x.

Automatic updates:

  • Core: recent installations receive minor and major versions automatically; older ones only minor versions. The setting is visible in Dashboard > Updates. To lock it in wp-config.php:
define('WP_AUTO_UPDATE_CORE', 'minor');

true enables all core updates, 'minor' only maintenance and security releases. Do not disable everything with AUTOMATIC_UPDATER_DISABLED: the WordPress documentation strongly advises against it.

  • Plugins and themes: the “Automatic Updates” column in Plugins > Installed Plugins and in Appearance > Themes. Enable it for simple, well-maintained plugins; keep manual, tested updates for critical plugins (store, page builder, memberships). In code, the auto_update_plugin and auto_update_theme filters allow an allowlist.

Manual update with WP-CLI, after a backup:

wp db export avant-maj-$(date +%F).sql
wp core update
wp core update-db
wp plugin update --all
wp theme update --all
wp language core update
wp language plugin update --all
wp cache flush

Update a critical plugin on its own (wp plugin update woocommerce) and test. Premium plugins update through their license key: an expired license blocks security patches.

PHP: check compatibility in Tools > Site Health, which flags an outdated PHP version, then change the version from the host's panel.

Drupal

Versions Drupal 10 and 11, Drush 13.

Drupal is updated with Composer, never by replacing files by hand:

composer outdated "drupal/*"
composer update "drupal/core-*" --with-all-dependencies
composer update drupal/nom_du_module --with-all-dependencies
drush updatedb
drush cache:rebuild

Validate on staging, commit composer.lock, then deploy to production with composer install --no-dev. Reports > Available updates (Update Status module) and composer audit flag vulnerable versions, including Drupal security advisories. The old drush pm:security command no longer exists in Drush 13: use composer audit.

Joomla

Versions Joomla 5 and 6.

Update the core in System > Update > Joomla, then the extensions in System > Update > Extensions. Joomla checks extension compatibility before a major version: deal with the extensions flagged as incompatible before starting the update. Paid extensions often require a download key, entered in System > Update > Update Sites.

PrestaShop

Versions PrestaShop 8 and 9, Update Assistant module 7.x.

Modules are updated from Modules > Module Manager, updates tab. The core is updated with the official “Update Assistant” module (formerly “1-Click Upgrade”), which checks the prerequisites, makes a backup and applies the new version. Do it on a copy of the store first: themes and third-party modules are the main source of incompatibilities. Then clear the cache in Advanced Parameters > Performance.

Magento

Versions Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.

Adobe regularly publishes security patches for Magento Open Source and Adobe Commerce. In maintenance mode on the test environment, then in production:

bin/magento maintenance:enable
composer require magento/product-community-edition 2.4.x-pN --no-update
composer update
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
bin/magento maintenance:disable

Replace 2.4.x-pN with the target version given in the bulletin. Check the end-of-support date of your release line in Adobe's documentation.

Shopify

Versions Shopify admin, all plans, November 2026.

The platform core is updated by Shopify. What remains your responsibility:

  • Apps: remove the ones you no longer use and remove their leftover code from the theme; an uninstalled app can leave scripts behind.
  • Theme: when the developer publishes a new version, Online Store > Themes shows it. Updating creates a new copy of the theme: compare it, carry over your code changes, then publish.

Wix, Squarespace and Webflow update their platform themselves; only check the integrations and third-party code you have added.

Laravel

Versions Laravel 11 to 13, Composer 2.9 and later.

Laravel releases one major version per year; each one receives bug fixes for 18 months and security fixes for two years. In the project:

composer audit
composer outdated --direct
composer update
php artisan test

Since Composer 2.9, composer update refuses by default to install a version affected by a known security advisory; since Composer 2.10, this setting is called policy.advisories.block (the old audit.block-insecure is still read). Commit composer.lock, deploy with composer install --no-dev --optimize-autoloader, and automate update proposals with Dependabot or Renovate. Example .github/dependabot.yml:

version: 2
updates:
  - package-ecosystem: "composer"
    directory: "/"
    schedule:
      interval: "weekly"
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"

Each proposal goes through continuous integration (tests, static analysis) before merging. For a major version, follow Laravel's official upgrade guide.

Symfony

Versions Symfony 6.4 LTS, 7.4 LTS and 8.x, Symfony Flex 2.

Same Composer method: composer audit, then composer recipes for the Flex recipes to refresh. Stay on a maintained version of Symfony, preferably a long-term support (LTS) one.

Next.js

Versions Next.js 15 and 16.

npm audit --omit=dev
npm outdated
npm install next@latest react@latest react-dom@latest
npm run build

Commit package-lock.json and deploy with npm ci. Vulnerabilities in server-side JavaScript frameworks are published as GitHub security advisories: enable the repository's Dependabot alerts and apply the patched versions without waiting for the next major. For a major version of Next.js, follow the official upgrade guide, which provides codemods. Also update Node.js, staying on a maintained LTS version.

Plesk

Versions Plesk Obsidian 18.0, with WP Toolkit.

The panel updates itself according to the setting in Tools & Settings > Update Settings. Each site's PHP version is chosen in Websites & Domains > your domain > PHP Settings. Plesk's WP Toolkit also offers automatic updates for the core, plugins and themes, with an option to test on a copy of the site depending on the license.

cPanel

Versions cPanel & WHM 130 and later, Jupiter theme.

Change each domain's PHP version in Software > MultiPHP Manager. If the site was installed with an application installer (Softaculous, Installatron), its automatic updates can be configured in the installer: check that they do not duplicate the CMS's own.

Shared hosting

The host maintains the system and the web server; you remain responsible for the CMS, the plugins and the PHP version chosen in the customer area. Test the next PHP version on a copy of the site before the host enforces it.

Dedicated server or VPS

The system and its packages (web server, OpenSSL, PHP, database) are your responsibility. On Debian and Ubuntu, enable automatic security updates:

sudo apt install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades

Schedule reboots (kernel, OpenSSL) and keep track of the distribution's end of support.

Common mistakes

  • Updating in production without a backup: a plugin that breaks the site with no way back.
  • Freezing everything “for stability”: the site becomes an ideal target, then the accumulated upgrade costs a rebuild.
  • Updating without an SEO check: an updated SEO plugin or theme can change canonicals, robots tags, the sitemap or structured data. Check the sample pages after each batch.
  • Expired premium licenses: the plugin no longer receives patches, without any visible message on the visitor side.
  • Ignoring PHP and the system: an up-to-date CMS on an unsupported PHP version remains vulnerable.

Frequently asked questions

Should WordPress automatic updates be enabled?

Yes for the core, at least for minor maintenance and security releases, which WordPress applies by default and strongly advises against disabling. For plugins, enable them on simple, well-maintained plugins, and keep manual, tested updates for critical plugins such as the store or the page builder. In every case, automatic daily backups must make it possible to roll back.

Can an update cause a loss of rankings in Google?

Not in itself, but an update can change a template, a canonical tag, a noindex directive, the sitemap or structured data, or break the display. Check the sample pages after each batch: home page, category, article, product page. The opposite risk is greater: a site that is not updated often ends up hacked, with spam pages indexed and a security warning in the results.

How often should a site be updated?

A common convention: critical security patches within 24 to 72 hours of their release, minor versions every week or every two weeks in a batch, and major versions on a planned basis, after testing on a copy of the site. What matters is regularity: small, frequent updates break things less often than catching up on several versions at once.

How do I know whether a plugin has a known vulnerability?

For a Composer or npm project, run composer audit or npm audit: they compare the installed versions with security advisory databases. For WordPress, security plugins and several public vulnerability databases flag vulnerable plugins, as do some hosts. Drupal, Joomla, PrestaShop and Magento publish their own advisories. Subscribe to the alerts for each component listed in your inventory.

Updated on

Topic checklist (PDF)

And now?

In the “Security and infrastructure” topic

  1. Use HTTPS everywhere
  2. Check SSL/TLS and automatic renewal
  3. Redirect HTTP to HTTPS
  4. Fix mixed content
  5. Configure security headers
  6. Configure HSTS if appropriate
  7. Update the CMS, plugins and dependencies
  8. Remove unnecessary plugins
  9. Automate backups and test restores
  10. Monitor for hacking and content or link injection
  11. Check Search Console security issues
  12. Check manual actions
  13. Monitor uptime and alerts
  14. Protect private information with access control