# WordPress Security in 2026: Stopping Plugin Vulnerabilities Before They Hit

By [Eoin Villarin](https://amvprosox.com/about). Published 2026-10-09, updated 2026-10-28. Canonical: https://amvprosox.com/blog/wordpress-security-plugin-vulnerabilities-2026

> Plugins caused 91% of new WordPress vulnerabilities in 2025. Learn how to audit your plugin stack, patch within hours, add virtual patching and harden your site against automated attacks.

## How do I stop WordPress plugin vulnerabilities from getting my site hacked in 2026?

Stopping WordPress plugin vulnerabilities takes a routine, not a single security plugin: run fewer, well-maintained plugins and delete unused ones, auto-update simple plugins while testing complex ones on staging, add virtual patching for flaws without a fix, enforce least privilege and two-factor authentication, and keep tested off-site backups. Plugins accounted for 91% of new WordPress vulnerabilities in 2025.

**Key takeaways**

- Patchstack recorded 11,334 new WordPress ecosystem vulnerabilities in 2025, a 42% increase on 2024.
- 46% of disclosed vulnerabilities had no developer patch available when they were made public.
- Heavily targeted vulnerabilities had a weighted median time to first exploit of five hours.
- Traditional hosting defenses blocked only 12% of WordPress-specific exploit attacks in Patchstack's testing.
- Set DISALLOW_FILE_EDIT to true in wp-config.php to disable the built-in theme and plugin file editors.

WordPress plugin vulnerabilities are now the main way WordPress sites get hacked, and last year's numbers make that hard to ignore. Patchstack recorded 11,334 new vulnerabilities in the WordPress ecosystem in 2025, a 42% increase on 2024, and 91% of them were in plugins rather than WordPress core.

I build and maintain WordPress sites for small businesses in Australia and the US, many of them trade and automotive businesses that rely on their website for leads. Most owners assume security means installing one security plugin. In 2026 that is not enough, because almost half of disclosed vulnerabilities had no patch available when they went public.

This guide explains how plugin exploits actually happen, how to audit your plugin stack, how to patch fast without breaking the site, and the hardening, monitoring and backup routine I use on client sites. It finishes with a monthly checklist you can copy.

## Why are WordPress plugin vulnerabilities the biggest risk in 2026?

The [Patchstack State of WordPress Security in 2026 report](https://patchstack.com/whitepaper/state-of-wordpress-security-in-2026/), which analyses vulnerability data from 2025, shows where the risk really sits:

- **Plugins accounted for 91%** of new vulnerabilities and themes for 9%. WordPress core had only six reported vulnerabilities, all low priority.

- **46% had no developer patch** by the time they were publicly disclosed.

- **1,966 vulnerabilities (17%)** were rated high severity, the kind likely to be used in automated mass attacks.

- For heavily targeted vulnerabilities, the **weighted median time to first exploit was five hours**, and about half of high-impact vulnerabilities were exploited within 24 hours.

- Premium and freemium components made up 29% of valid reports and had three times as many known exploited vulnerabilities as free components.

The takeaway is uncomfortable but useful. WordPress core is well defended and patched quickly. The risk sits in the 20 or 30 plugins layered on top of it, and the window between disclosure and attack is now measured in hours, not weeks.

## How do attackers exploit vulnerable WordPress plugins?

Most plugin attacks are automated. Bots scan the web for sites running a vulnerable plugin version, then send the exploit request to every match they find. Your site does not need to be important to be targeted. It only needs to run the plugin.

![Security camera mounted on a ceiling, watching for the automated scans that target every site](https://amvprosox.com/api/img/1793146619202-xs7nfe)
*Exploits are automated, so every vulnerable site is a target. Photo: rawpixel, CC0*

Patchstack found that broken access control was the most exploited category in 2025. These bugs happen when a plugin exposes an action, such as saving settings or creating a user, without checking that the request comes from someone allowed to do it. Because the request looks like normal traffic, generic firewalls struggle to block it.

The most targeted vulnerability types in the report included:

- **Privilege escalation and authorization bypass**, which let a visitor or low-level user become an administrator.

- **Arbitrary file upload**, which lets an attacker place a PHP web shell on the server.

- **Stored cross-site scripting (XSS)**, which injects JavaScript that runs when an administrator views a page.

- **PHP object injection** that leads to remote code execution.

- **Unauthenticated plugin installation and local file inclusion.**

Only four of the ten most targeted vulnerabilities were published in 2025. Attackers keep exploiting old bugs because plenty of sites never update, which is why patching discipline matters as much as anything else in this guide.

## How to audit your WordPress plugins for security risks

The fastest way to reduce your exposure to WordPress plugin vulnerabilities is to run fewer, better-maintained plugins. A plugin audit answers three questions for every plugin: do we need it, is it maintained, and is it up to date? I run this audit whenever I take over a site, and again every quarter.

### Build an inventory with WP-CLI

```
# List every plugin with its status, version and update state
wp plugin list --fields=name,status,version,update,update_version,auto_update

# Show only plugins with an update waiting
wp plugin list --update=available

# Compare core and plugin files with the official checksums
wp core verify-checksums
wp plugin verify-checksums --all
```

Checksum verification only covers plugins from the WordPress.org directory, but it is a quick way to spot modified files in the ones it does cover.

### Score each plugin

| Check | Healthy | Warning sign |
| --- | --- | --- |
| Last updated | Updated within the last few months | No update in over a year |
| Compatibility | Tested with your current WordPress version | Not tested with recent major versions |
| Directory status | Listed on WordPress.org or sold by an established vendor | Closed or removed from the directory |
| License | Active license for premium plugins | Expired license, so no updates arrive |
| Source | WordPress.org or the vendor's own site | Nulled or "free premium" downloads |
| Necessity | Actively used and not duplicated | Inactive, or overlaps another plugin |

### Delete plugins instead of deactivating them

Deactivated plugins still sit on the server, and some vulnerable files can be reached directly even when the plugin is switched off. If you do not need a plugin, delete it. The same goes for unused themes: keep the active theme and one default theme as a fallback, and remove the rest.

Watch for plugins that have been closed on WordPress.org as well. A closed plugin stops receiving updates through the directory, and the reason is not always public, so treat a closure as a prompt to find a replacement.

## How to patch WordPress plugins fast without breaking your site

Speed matters because the exploit window is now hours. Stability matters because a broken checkout or contact form costs money too. The answer is a tiered approach that patches simple plugins automatically and complex ones through staging.

![Office desk with two large monitors, set up to test plugin updates on staging](https://amvprosox.com/api/img/1793146620538-izevm3)
*Auto-update simple plugins and test complex ones on staging first. Photo: Victor Hugo Solis, CC0*

### Turn on auto-updates for low-risk plugins

WordPress has supported per-plugin auto-updates since version 5.5. You switch them on in the automatic updates column of the Plugins screen, and WordPress checks for updates twice a day, as the [official auto-updates documentation](https://wordpress.org/documentation/article/plugins-themes-auto-updates/) explains. On most small business sites I enable auto-updates for simple, well-maintained plugins such as SEO, forms and caching tools.

```
# Enable auto-updates for specific plugins
wp plugin auto-updates enable wordpress-seo contact-form-7

# See which plugins update automatically
wp plugin auto-updates status --all
```

### Use staging for complex plugins

Page builders, WooCommerce, membership and booking plugins touch a lot of code and data. For those I update a staging copy first, test the critical paths such as checkout, forms, bookings and login, then push to production. For security releases that happens the same day.

### Keep WordPress core current

Core is rarely the problem, but only the latest release is supported. As of late October 2026, the [WordPress release archive](https://wordpress.org/download/releases/) lists 7.1.3, released on October 6, 2026, as the current version and states that only the most recent release in the 7.1 series is safe to use. If you are still deciding on the move to the 7 series, my [WordPress 7.0 overview](https://amvprosox.com/blog/wordpress-7-armstrong-whats-new) covers what changed.

## Virtual patching: protection when no update exists yet

With 46% of vulnerabilities disclosed before a fix exists, waiting for the plugin author is not a strategy. Virtual patching closes that gap. A WordPress-aware firewall or vulnerability service deploys a rule that blocks the specific exploit request, so the site is protected even while the vulnerable code is still installed.

Generic hosting firewalls are not a substitute. In Patchstack's testing, traditional hosting defenses blocked only 12% of WordPress-specific exploit attacks, largely because access control attacks look like legitimate requests.

- Choose a service that publishes WordPress-specific rules within hours of a disclosure.

- Make sure it alerts you when a plugin on your site has a known vulnerability, patched or not.

- Pair it with a host that isolates sites from each other and keeps PHP current.

> Updates fix the vulnerabilities everyone knows about. Virtual patching, least privilege and tested backups protect you from the ones nobody has fixed yet.

## How to harden WordPress so one plugin cannot take over the site

Hardening limits the damage when something does get through. The [WordPress hardening guide](https://developer.wordpress.org/advanced-administration/security/hardening/) covers the full list. These are the settings I apply to every client site.

### Lock down wp-config.php

```
// Disable the built-in theme and plugin file editors
define( 'DISALLOW_FILE_EDIT', true );

// Force HTTPS for logins and the dashboard
define( 'FORCE_SSL_ADMIN', true );

// Keep debug output off in production
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
```

DISALLOW_FILE_EDIT removes the code editor that attackers love to use once they have admin access. DISALLOW_FILE_MODS goes further and blocks plugin installs and updates from the dashboard, but it also stops automatic updates, so only use it when updates run through WP-CLI or a deployment pipeline.

### Reduce what an attacker can reach

- **Least privilege:** give staff the Editor or Shop Manager role instead of Administrator, and remove accounts for people who have left.

- **Strong authentication:** enforce two-factor authentication or passkeys for every administrator. My [passkeys guide](https://amvprosox.com/blog/passkeys-website-login-guide) explains how passkeys work on websites.

- **Close unused entry points:** if no app or service uses XML-RPC, block it, and review the Application Passwords on each user profile.

- **Current PHP:** run a PHP version that still receives security support from the PHP project.

### Mind the plugin supply chain

The WordPress.org plugin directory has tightened its own security. Since October 1, 2024, [two-factor authentication has been mandatory for plugin owners and committers](https://make.wordpress.org/plugins/2024/10/01/plugin-check-and-2fa-now-mandatory-for-new-plugin-submissions/), which makes it harder to hijack a developer account and push a malicious update. Premium plugins sold outside the directory vary more, so buy from established vendors, keep licenses active and never install nulled copies.

## How to detect a compromise and recover quickly

Even well-maintained sites need a plan for the day something goes wrong. Detection and recovery decide whether an incident costs an hour or a week.

![Open hard drive showing the platter and read arm, where site backups are stored](https://amvprosox.com/api/img/1793146621681-d4xta6)
*Tested backups turn a hack into an inconvenience. Photo: rawpixel, CC0*

- **Check for unexpected administrators.** Many plugin exploits create a hidden admin account, and `wp user list --role=administrator` shows every admin in seconds.

- **Verify file integrity.** The checksum commands above flag modified core and plugin files.

- **Monitor uptime and changes.** Alerts for downtime, new admin users and file changes catch problems early.

- **Keep off-site backups and test restores.** Daily backups stored away from the server, with a restore tested at least every quarter, are your last line of defense.

If a site is infected, clean it properly. Patchstack's report notes that some malware reinfects cleaned files from memory, and it recommends surgical remediation of injected legitimate files rather than simply deleting anything suspicious. In practice that means restoring clean copies of core and plugins, removing rogue users, rotating every password and the security keys and salts in wp-config.php, and patching the hole that let the attacker in.

## A monthly WordPress security checklist

Security is a routine, not a one-off project. This is the schedule I follow on the sites I maintain.

| Task | How often | Tool |
| --- | --- | --- |
| Apply plugin and theme updates | Weekly, same day for security releases | Auto-updates, staging site, WP-CLI |
| Review vulnerability alerts | Daily | Virtual patching or vulnerability service |
| Check for new administrator accounts | Weekly | wp user list or the Users screen |
| Review the plugin inventory | Monthly | wp plugin list |
| Verify core and plugin checksums | Monthly | wp core verify-checksums |
| Confirm backups ran | Monthly, with a test restore every quarter | Backup tool and staging site |
| Check PHP and WordPress versions | Monthly | Site Health screen |
| Audit users, roles and two-factor authentication | Quarterly | Users screen |

The built-in Site Health screen under Tools is underrated here. It flags outdated PHP, inactive plugins and themes, and HTTPS problems in one place, so it makes a good starting point for each monthly check.

## Frequently asked questions

### Is WordPress still safe to use in 2026?

Yes, when it is maintained. WordPress core had only six reported vulnerabilities in 2025, all low priority, according to Patchstack. The risk comes from plugins and themes. A site with a lean plugin list, fast updates, virtual patching, two-factor authentication and tested backups is well protected. An unmaintained site running dozens of outdated plugins is not, whatever platform it runs on.

### Should I enable automatic updates for all WordPress plugins?

Enable them for simple, well-maintained plugins, and update complex ones such as page builders, WooCommerce and membership plugins on staging first. Automatic updates close the exploit window quickly, which matters when heavily targeted vulnerabilities are exploited within hours. The trade-off is a small risk of a breaking change, so pair auto-updates with uptime monitoring and reliable backups.

### Is a security plugin enough to protect WordPress?

No single plugin is enough. A security plugin or firewall helps, especially one with virtual patching rules for known plugin vulnerabilities, but it cannot fix outdated code, weak admin passwords or missing backups. Combine it with a lean plugin stack, regular updates, least-privilege user roles, two-factor authentication and off-site backups that you have actually tested restoring.

### How many plugins is too many for a WordPress site?

There is no fixed number. Risk depends on quality and maintenance more than count. Ten well-maintained plugins from reputable developers are safer than five abandoned ones. Every plugin still adds attack surface, though, so remove anything you do not actively use, avoid overlapping features and replace plugins that have not been updated in over a year.

## Next steps: keep your site off the exploit list

WordPress plugin vulnerabilities are not going away, and attackers are getting faster. The sites that stay safe are not the ones with the most security plugins. They are the ones with a lean plugin stack, a patching routine, virtual patching for the gaps and backups that actually restore.

If you would rather hand this off, I provide WordPress maintenance and security care for small businesses, the same ongoing web operations work behind projects like [24 Hour Melbourne Plumbers](https://amvprosox.com/case-studies/24-hour-melbourne-plumbers). See more in my [case studies](https://amvprosox.com/case-studies), or [request a plugin audit through the contact form](https://amvprosox.com/#contact-form).
