WordPress Plugin Vulnerabilities: Audit, Remove, Replace
WordPress plugin vulnerabilities are where almost every WordPress hack begins. Not the WordPress core. Not your theme. Your plugins. A site owner who updates WordPress faithfully, picks a strong password, and installs a security plugin can still be hacked through a single contact form plugin that has not been updated in eight months, or a slider plugin with a flaw the developer never fixed, or a plugin the owner forgot was even installed. The flaw sits there quietly, listed in a public database, until an automated scanner finds it and an attacker walks through it. This guide shows you how to find those flaws before the scanners do: build a complete inventory of every plugin on your site, check each one against the public vulnerability databases, read the results properly, and then update, replace, or remove the risky ones, in that order, without breaking your site.
Most WordPress owners think of plugins as features. You install a form builder and you get forms. You install a caching plugin and you get speed. You install a gallery plugin and you get galleries. What you also get, with every single install, is code written by someone else, running with the same privileges as your whole site, on every page load. The average WordPress site runs twenty to thirty plugins, and the WordPress.org directory alone lists more than 69,000 free ones, before you count the premium plugins sold outside the directory. Every one of those plugins is a candidate for a future vulnerability disclosure, and the weekly disclosure rate heading into 2026 sits above 250 plugin vulnerabilities per week, roughly 36 every single day. Nobody can read all of that. But you do not need to. You only need to check the twenty or thirty plugins you actually run, and this guide shows you how to do that in about half an hour, once a month, with free tools.
The stakes are not theoretical. Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, a 42 percent rise on 2024, and 91 percent of them were in plugins. Only six were in WordPress core. Nearly half of the 2025 flaws, 46 percent, had no fix at all when they went public, which means updating was not even an option for those sites: the choice was to remove the plugin or stay exposed. And the window between disclosure and attack is brutally short. Patchstack measured a median of five hours from public disclosure to mass exploitation. Five hours. If you check your plugins once a month, you are already late for the flaws disclosed this week. The point of this guide is not to make you paranoid. It is to give you a repeatable audit you can run monthly, plus the alerts that catch the urgent ones between audits, so that the next disclosure is a ten-minute update instead of a hacked site and a week of cleanup.
Quick Takeaways
- WordPress plugin vulnerabilities caused 91 percent of all new WordPress vulnerabilities in 2025. Only six were in WordPress core. Your plugin list is your attack surface.
- Patchstack counted 11,334 new WordPress vulnerabilities in 2025, up 42 percent on 2024. WPScan lists 42,525 unique WordPress vulnerabilities across 16,618 vulnerable plugins.
- Nearly half of all disclosed flaws, 46 percent, had no fix when they went public. For those, removing or replacing the plugin is the only safe answer.
- The median time from public disclosure to mass exploitation is five hours. Monthly audits catch the slow ones. Free email alerts catch the fast ones.
- Check every plugin in three places: WPScan, Patchstack, and Wordfence Intelligence. No single database lists every disclosure on the same day.
- Read the fixed-in version, not the scary title. If your installed version is at or above the fixed-in version, you are already safe.
- Inactive plugins are still installed plugins. A deactivated plugin with a known flaw can still be exploited. Delete what you do not use.
- Before you install a replacement, check four things on its WordPress.org page: last update date, tested-up-to version, active install count, and the changelog.
Why WordPress Plugin Vulnerabilities Are the Whole Game
WordPress core is written and reviewed by hundreds of contributors, tested by millions of sites before every release, and patched within hours when a flaw is found. Plugins are not. A plugin can be written by one person, in their spare time, with no security review at all, and still be installed on 100,000 sites. The WordPress.org review team checks plugins for guideline violations when they are first submitted, but it does not audit their code for security flaws, and it does not re-check them on every update. Once a plugin is in the directory, it stays there until someone reports a problem. That gap between core and plugin quality is the entire story of WordPress security, and the numbers prove it year after year.
| Source | Figure | What it means for you |
|---|---|---|
| Patchstack, State of WordPress Security 2026 | 11,334 new vulnerabilities in 2025, up 42 percent on 2024 | Disclosures are accelerating, not slowing down |
| Patchstack, State of WordPress Security 2026 | 91 percent of 2025 vulnerabilities were in plugins, 9 percent in themes, 6 in core | Your plugins are the risk, not WordPress itself |
| Patchstack, State of WordPress Security 2026 | 46 percent of 2025 vulnerabilities had no fix at disclosure | Updating is not always possible, removal is sometimes the fix |
| Patchstack, State of WordPress Security 2026 | Median 5 hours from disclosure to mass exploitation | A monthly check is the minimum, alerts cover the gap |
| WPScan, November 2026 | 42,525 unique vulnerabilities across 16,618 vulnerable plugins and 2,135 vulnerable themes | The historical record is huge, and 93 percent of it is plugins |
| NVD analysis, January to 20 November 2026 | 12,372 new vulnerabilities in 2026, up 29 percent on the same period of 2025 | 2026 is already worse than 2025, with six weeks still to go |
| Patchstack, 2025 | 1,614 plugins and themes removed from WordPress.org in 2024 for unpatched security issues | Abandoned plugins get thrown out of the directory entirely |
The pattern inside the numbers matters as much as the totals. The most common flaw type in WordPress plugins is cross-site scripting, at 40.6 percent of all disclosures, followed by broken access control at 13.2 percent and cross-site request forgery at 12.9 percent. Those three alone account for two thirds of everything disclosed. Cross-site scripting lets an attacker inject scripts that hijack admin sessions or change site settings. Broken access control lets an attacker reach functions or data without the right permission. Cross-site request forgery tricks a logged-in admin into performing an unwanted action, like changing a password, by getting them to visit a malicious page. None of these require the attacker to know your password or to guess anything. They only require a vulnerable plugin and a visitor, and the visitor can be you.
The other pattern is who gets hurt. One in five of the bugs disclosed in 2025 and 2026 were in plugins with under 1,000 active installs that still have no newer version available. Small plugins, the ones a site owner installs for one small job and then forgets, are the most likely to be abandoned by their developer and the least likely to ever get a fix. A famous plugin with a million installs gets patched within days of a disclosure, because the whole ecosystem is watching it. A niche plugin with 400 installs gets disclosed, the developer never replies, and the flaw sits in the public database forever with an empty fixed-in field. That is why the audit in this guide checks every plugin, including the small ones, and why the decision step treats an abandoned plugin as a removal candidate, not as a low priority.
There is one more uncomfortable fact. Premium plugins are not safer. At least one in seven of the plugin and theme bugs disclosed in 2026 were in products that are not on WordPress.org at all, most of them paid. Patchstack, counting the reports it received rather than the published CVEs, found premium and freemium components made up 29 percent of 2025 disclosures. Paying for a plugin buys you support and features. It does not buy you a security review. The audit steps in this guide work exactly the same way for premium plugins, with one difference: premium plugins do not appear in the WordPress.org directory checks, so you have to check them in the vulnerability databases by name and version, and check the vendor changelog for the fix, instead of relying on the dashboard update notice.
What a WordPress Plugin Vulnerability Actually Is
A WordPress plugin vulnerability is a flaw in a plugin’s code that lets someone do something the plugin author never intended. The flaw is found by a security researcher, reported to the developer, given a public record in a vulnerability database, and usually given a CVE number, the official public ID for a confirmed vulnerability. Once the record is public, anyone can read it, including the people who write the automated scanners that probe millions of WordPress sites looking for that exact flaw in that exact plugin version. That is the moment your site goes from safe to exposed, and it happens whether or not you have heard of the flaw, whether or not you read security news, and whether or not the plugin is one you use every day.
The flaws cluster into a small set of types, and knowing the types tells you what to test for first and how worried to be about each finding. The table below covers the types you will actually meet in the databases, in the order Patchstack sees them most often.
| Vulnerability type | Share of disclosures | What an attacker gains | How urgent is it |
|---|---|---|---|
| Cross-site scripting (XSS) | 40.6 percent | Injects scripts that hijack admin sessions or change settings | High if stored, lower if reflected and needs a click |
| Broken access control | 13.2 percent | Reaches admin functions or private data without permission | High, often needs no login at all |
| Cross-site request forgery (CSRF) | 12.9 percent | Tricks a logged-in admin into an unwanted action | Medium, needs an admin to visit a malicious page |
| SQL injection | Common | Reads or changes your database, including user passwords | Critical, treat as urgent |
| Remote code execution (RCE) | Less common, highest impact | Runs arbitrary code on your server | Critical, act the same day |
| Privilege escalation | Common | Turns a low-privilege account, like a subscriber, into an admin | Critical, act the same day |
| Authentication bypass | Less common | Logs in as an admin without a password | Critical, act the same day |
| Arbitrary file upload | Common | Uploads a malicious file, usually a web shell, to your server | Critical, act the same day |
| Information disclosure | Common | Leaks paths, versions, or data that help the next attack | Low to medium, fix with the next update |
| Open redirect | Less common | Sends your visitors to a malicious site | Low to medium, fix with the next update |
Two details in that table decide how fast you act, and they are both in the vulnerability record. The first is whether the flaw needs authentication. An unauthenticated flaw can be exploited by anyone on the internet, with no account on your site at all. An authenticated flaw needs the attacker to have an account first, even a lowly subscriber account, which is a much smaller pool of attackers. The second is whether the flaw needs user interaction. A stored cross-site scripting flaw fires the moment an admin views a poisoned page, no click required. A reflected one needs someone to click a crafted link. When you read a record, those two fields, authenticated or unauthenticated, and user interaction required or not, tell you more about your real risk than the scary title does.
A concrete example makes the point. In November 2026, The Events Calendar, a plugin with more than 800,000 active installations, was disclosed with a privilege escalation flaw rated CVSS 9.8 out of 10. A flaw that severe, in a plugin that popular, is patched fast, and it was. But the sites that were slow to update stayed exposed to a flaw that could hand an attacker an admin account, and the scanners knew about it within hours of disclosure. That is the rhythm of this whole topic: a popular plugin gets a critical flaw, the fix ships the same week, and the only sites that get hurt are the ones that never looked. The audit in this guide exists so that your site is never one of those.
How to Read a Severity Score Before You Panic
Every vulnerability record carries a CVSS score, the Common Vulnerability Scoring System, a number from 0.0 to 10.0 that communicates severity. The number is useful, but only if you know the bands and what they do not say. A 9.8 in a plugin you do not run is irrelevant to you. A 5.4 in a plugin you do run, with no fix available, is a real problem. The score measures how bad the flaw is in the abstract. Your installed version, your configuration, and whether a fix exists decide how bad it is for your site.
| CVSS score | Severity | What it means | Your response |
|---|---|---|---|
| 9.0 to 10.0 | Critical | Easy to exploit, severe impact, often needs no login | Act the same day, update or remove immediately |
| 7.0 to 8.9 | High | Serious impact, may need an account or a click | Act within 24 hours |
| 4.0 to 6.9 | Medium | Real flaw, limited impact or needs specific conditions | Fix with the next update round, within the week |
| 0.1 to 3.9 | Low | Minor issue, hard to exploit or low impact | Fix with the next routine update |
| No score yet | Unscored | Disclosure is fresh, scoring is still in progress | Check the record again in a few days, treat as medium until scored |
Three habits keep the score from misleading you. First, always check the affected version range before the score. A critical flaw in versions up to 2.4.1 does not touch you if you run 2.4.2. Second, always read the fixed-in field. A high score with a fix available is a ten-minute update. A medium score with no fix is a removal decision. Third, remember that scores are sometimes revised. A flaw disclosed as a 6.5 can be re-scored as a 9.0 once researchers prove it can be exploited without a login. If a record you already checked gets updated, the databases will show the new score, which is one more reason the monthly audit is a repeat, not a one-off.
Step 1: Build Your Complete Plugin Inventory
You cannot check what you have not listed. Step one is a complete inventory of every plugin on your site, with the exact installed version of each one, including the plugins you never use. Inactive plugins are still installed plugins. A deactivated plugin still has its files on your server, and several disclosed flaws have been exploitable in deactivated plugins, because the vulnerable file can be reached directly even when WordPress has not loaded the plugin. Must-use plugins, the ones in the mu-plugins folder that run on every page load and do not appear in the normal plugin list, count too. So do premium plugins installed from a zip file, which never appear in the WordPress.org directory and never get a dashboard update notice. If it is on the server, it goes on the list.
The fastest way to build the list is WP-CLI, the command line tool for WordPress, if your host provides it. One command lists every plugin with its status, version, and whether an update is available. Run it from your site root over SSH.
wp plugin list --fields=name,status,version,update --format=table
That gives you the active and inactive plugins in one table. Two more commands fill the gaps. The first lists only the inactive ones, so you can see at a glance how much dead weight you carry. The second lists the must-use plugins, which the first command does not show.
wp plugin list --status=inactive --field=name
wp plugin list --status=must-use --fields=name,version --format=table
If your host does not provide WP-CLI or SSH access, the dashboard works fine and takes only a few minutes longer. Go to Plugins, then Installed Plugins, and read the version number shown under each plugin name. Use the filters at the top of the list to work in order: All, then Active, then Inactive, then Must-Use. Write down each plugin name, its folder name under wp-content/plugins, and its installed version. The folder name matters more than the display name, because vulnerability databases index plugins by their slug, the folder name, and display names often collide. Contact Form 7, for example, is slug contact-form-7. Two different plugins can share a display name, but they never share a slug.
Record each plugin’s slug, not its display name. Vulnerability databases index by slug, and display names often collide.
Your inventory needs four columns for every plugin, plus a notes column for what you find later. Keep it in a spreadsheet or in the audit report template at the end of this guide, and keep it from month to month so you can see what changed.
| Column | What to record | Where to find it |
|---|---|---|
| Plugin name | The display name, for humans | Plugins screen in the dashboard |
| Slug | The folder name under wp-content/plugins | The folder name, or WP-CLI name field |
| Installed version | The exact version number | Under the plugin name, or WP-CLI version field |
| Status | Active, inactive, or must-use | Plugins screen filter, or WP-CLI status field |
| Source | WordPress.org, premium vendor, or custom code | Your purchase records and the plugin page |
| Last updated | The date of the latest release | WordPress.org plugin page, or the vendor changelog |
| Notes | Findings from the database check | Your own notes during step two |
Do not skip the premium plugins. This is the step where most audits fail. A premium plugin bought from a marketplace does not appear in the WordPress.org directory, so the dashboard never warns you about it, and the repository-based checks never see it. Put each one on the list with its vendor, its license status, and the date of its last update. If the license has lapsed, the plugin will not receive updates at all, which is a finding in itself: an unlicensed premium plugin is an unpatched premium plugin, and it belongs on the removal list until the license is renewed or the plugin is replaced.
While you are listing, count. If the total is over thirty, you have a second problem beyond vulnerabilities: every plugin adds load time, adds conflicts, and adds maintenance. The audit usually finds two or three plugins the site does not need at all, and deleting them is the easiest security win in this whole guide, because a plugin you do not have cannot be exploited.
Step 2: Check Every Plugin Against the Vulnerability Databases
With the inventory in hand, look up each slug and its installed version in the vulnerability databases. Your main options are WPScan, Patchstack, and Wordfence Intelligence, plus the National Vulnerability Database for the authoritative CVE record. No single database lists every disclosure on the same day, so check at least two of them for each plugin. The databases are free to search on the web, and they disagree often enough that a single-source check is a real gap: a flaw can appear in Patchstack on Monday and in WPScan on Wednesday, and the scanners do not wait for the slower database.
| Database | What to search | What each entry shows | Cost to search |
|---|---|---|---|
| WPScan | Plugin name or slug | Affected versions, CVE number, fixed-in version, references | Free to browse, API has a free token |
| Patchstack | Plugin name | Flaw type, risk score, disclosure date, affected versions | Free to search |
| Wordfence Intelligence | CVE number, software name or slug, researcher name | Affected versions, CVSS score, researcher credit, references | Free to query, API free for personal and commercial use |
| National Vulnerability Database | CVE number | The authoritative CVE record, CVSS score, references | Free |
Start with WPScan, which listed 94,710 WordPress core, plugin, and theme vulnerabilities as of November 2026. Go to the WPScan vulnerability database, search by plugin name or slug, open each entry, and read the affected versions, the CVE number, and the fixed version. Then search the Patchstack database the same way. Each row names the affected software, the flaw type, a risk score, and the disclosure date. On 19 November 2026, for example, it listed WP Duplicate up to version 1.1.11 with an unauthenticated file upload flaw scored 10. Then check Wordfence Intelligence, which you can search by CVE ID, software name or slug, or researcher name. Finish with the National Vulnerability Database if you want the authoritative CVE record with its severity score and references.
If you manage several sites, or you want the check automated, the WPScan API answers per plugin slug. You need a free API token from WPScan, and then one curl command per plugin returns its vulnerability records in JSON. The fixed-in field in each record is the part that matters.
curl -s -H "Authorization: Token token=YOUR_WPSCAN_API_TOKEN" \
"https://wpscan.com/api/v3/plugins/contact-form-7" \
| jq '.["contact-form-7"].vulnerabilities[] | {title, fixed_in}'
Replace contact-form-7 with the slug of the plugin you are checking, and replace the token with your own free token. Never share the token, and never paste it into a post or a screenshot. The output lists each known vulnerability for that plugin with its title and the version it was fixed in. An empty fixed-in value means no fix exists, and Patchstack found that 46 percent of 2025 vulnerabilities had no patch at disclosure, so expect to see that often. When you see it, that plugin goes to the decision step as a removal candidate, not as a wait-and-see.
A second way to check, useful before you install a new plugin, is the WordPress.org plugin page itself. Before you install anything, check four things on that page: the last update date, the tested-up-to version against your WordPress version, the active install count, and the changelog. A plugin untouched for more than a year may be abandoned. A plugin tested up to a WordPress version two releases behind yours may break on update. A plugin with fewer than 1,000 active installs and no recent update is a risk before you even install it. These four checks take thirty seconds and they prevent most of the findings this audit would catch a month later.
Step 3: Read the Record Before You Panic
A vulnerability record has four parts you need, and the title is the least useful of them. The title is written to be scary. The fields are written to be precise. Read the fields, compare them against your installed version, and most of the time you will find you are already safe, or that the fix is a single update.
| Field | What to look for | Why it matters |
|---|---|---|
| Affected versions | Does the range include the version you run | A flaw in versions up to 2.4.1 does not touch you on 2.4.2 |
| Fixed in | The first safe version | Update to it or later and the flaw is gone |
| Type | SQL injection and remote code execution are urgent, information disclosure is not | The type decides the speed of your response |
| Authentication | Unauthenticated means anyone can exploit it, authenticated means an account is needed | Unauthenticated flaws go to the top of the list |
| User interaction | Does the exploit need a victim to click something | Stored flaws fire on their own, reflected ones need a click |
| CVSS score | 9.0 to 10.0 is critical, 7.0 to 8.9 is high, 4.0 to 6.9 is medium, 0.1 to 3.9 is low | The score ranks the flaw, your version decides your risk |
Work through the fields in this order. First, the affected versions. Open the record, find the version range, and compare it with the version on your inventory. If your installed version is outside the affected range, you are done: the flaw does not affect you, note it in the inventory, and move on. This is the most common outcome for a site that updates regularly, and it is why the audit is fast once the inventory exists. Second, the fixed-in version. If your version is below the fixed-in version, you are affected, and the fix is to update to the fixed-in version or later. Third, the type and the authentication fields, which decide how fast you act. An unauthenticated remote code execution flaw gets fixed today. An authenticated low-impact information disclosure gets fixed with the next update round.
The common mistake at this step is reading the title and skipping the fields. A title like “Critical Privilege Escalation in Plugin X” sounds like an emergency, and it is, for sites running the affected version. If you run the fixed version, it is a historical note. The reverse mistake is just as common: a boring title like “Missing Authorization Check” can hide an unauthenticated flaw that lets anyone change your site settings. The title is marketing. The fields are the truth. Read the fields every time.
Pay special attention to the fixed-in field being empty. An empty fixed-in means the developer has not released a fix, and the flaw is public. This happens more often than most site owners expect, and it happens most often with small and abandoned plugins. Patchstack counted that 46 percent of 2025 vulnerabilities had no patch at disclosure, and one in five of the bugs disclosed in 2025 and 2026 were in plugins with under 1,000 installs that still have no newer version. When you see an empty fixed-in field, do not wait for a fix that may never come. Go to the decision step and treat the plugin as a removal candidate. If the plugin is essential to your site, look for a replacement first, then remove the vulnerable one. Do not leave a known, unpatched, public flaw on a live site while you hope the developer replies.
Step 4: Decide: Update, Replace, or Remove
Every finding from step three ends in one of three decisions: update, replace, or remove. The decision is a flowchart, not a judgment call, and running it the same way every time keeps the audit consistent from month to month. Four questions decide it.
| Question | Answer | Decision |
|---|---|---|
| Is a fix available, and is your version below it | Yes, a fixed version exists | Update to the fixed version or later, today if critical |
| Is a fix available, and is your version already at or above it | Yes, you are already safe | No action, note the check in the inventory |
| Is no fix available, and is the plugin essential | No fix, but you need the feature | Find a replacement first, then remove the vulnerable plugin |
| Is no fix available, and is the plugin non-essential | No fix, and you can live without it | Remove the plugin now |
| Is the plugin abandoned, with no update in over a year | Yes, abandoned | Remove it, even with no known flaw, and replace the feature |
| Is the plugin inactive and unused | Yes, inactive | Delete it, active or not, a deactivated plugin can still be exploited |
Update is the decision you want most often, and it is the easiest. Go to Dashboard, then Updates, and install the fixed version. If the plugin is central to your site, like a store or a form builder, update on a staging copy first, test the pages that depend on it, and then update the live site. A backup before the update turns a bad update into a ten-minute restore instead of a broken site. The WordPress PHP version guide on this site covers the same backup-first habit for language updates, and it applies here exactly the same way: never change production code without a way back.
Replace is the decision for a plugin with no fix that you still need. Do not pick the first alternative in a search. Run the replacement through the same four checks from step two: last update date, tested-up-to version, active install count, and changelog. Then search the replacement in WPScan and Patchstack before you install it. A replacement with its own known flaws is not an improvement. Migrate the settings and content, test the replacement on staging, and only then remove the old plugin. The overlap period, where both plugins are installed, should be as short as possible, ideally minutes, because during it you are running two plugins for one job and one of them is vulnerable.
Remove is the decision for everything else, and it is the decision most site owners resist. A plugin you installed for one job two years ago, used once, and forgot about is not an asset. It is an unlocked door. The same goes for the plugin with three features you use and thirty you do not, the plugin whose developer stopped replying in 2024, and the plugin that duplicates a feature WordPress core now has built in. The WordPress security checklist on this site already told you to delete unused plugins as one of its fifteen steps, and this audit is where that step becomes a habit. Every plugin you remove is a vulnerability you will never have to check again, a conflict you will never have to debug, and a few milliseconds off every page load. Deleting is not losing a feature. It is closing a door.
Step 5: Remove a Plugin Safely, Without Breaking Your Site
Removing a plugin is simple, but removing it safely takes five minutes of care. A plugin can leave behind database tables, settings, uploaded files, and shortcodes embedded in your posts. Deleting the files without cleaning the leftovers is fine for security, the vulnerability goes away the moment the files are gone, but the leftovers can cause broken shortcodes on old posts, orphaned database rows, and confusion the next time someone audits the site. The safe sequence handles all of it.
First, make a full backup. This is the same rule as every other change in this guide, and it is the one that turns a mistake into a restore. Back up the files and the database, and confirm the backup completed before you touch anything. Second, check what the plugin does on your site. Search your posts for its shortcodes, check the pages that use its widgets or blocks, and note anything that will visibly change when it is gone. A gallery plugin leaves image galleries behind. A form plugin leaves forms behind. Know what will break before you break it, and have the replacement ready if the feature matters.
Third, deactivate the plugin, then delete it from the dashboard. Deactivate first, delete second. Deleting from the dashboard removes the plugin files and runs the plugin uninstall routine if the developer wrote one, which cleans up its database tables and options. WP-CLI does the same in one command.
wp plugin deactivate old-plugin-slug
wp plugin delete old-plugin-slug
Fourth, check for leftovers. Look in wp-content/uploads for folders named after the plugin, and check the database options table for rows starting with the plugin slug. A clean uninstall removes these. A sloppy one leaves them. Leftover files in the uploads folder are worth a look on their own, because an upload folder that allows PHP execution is a separate vulnerability, and step seven shows you how to block it. Fifth, visit the pages that used the plugin and confirm they still load cleanly. A shortcode from a deleted plugin renders as plain text in brackets on the page, which looks broken to visitors. Replace those shortcodes or remove them, and the job is done.
One more check after deletion: search the site for the plugin slug in the database, to catch references in widgets, theme options, and post content. WP-CLI can search the database for a string, and it will show you every row that still mentions the deleted plugin.
wp db search "old-plugin-slug" --all-tables
Replace old-plugin-slug with the slug of the plugin you just deleted. If the search returns rows in post content, edit those posts. If it returns rows in the options table, check whether they belong to the deleted plugin or to something else that shares the name. Clean rows are a finished job. A site with no trace of a deleted plugin is a site the next audit can read at a glance.
Step 6: Replace a Risky Plugin With a Safer One
Replacement starts before you install anything. The plugin you choose to replace a vulnerable one should be checked harder than the one you removed, because the whole point is to end up safer than you started. Run the replacement through four checks on its WordPress.org page, then check it in the vulnerability databases, then test it on staging. The whole vetting takes ten minutes and it prevents the most embarrassing outcome in this guide: replacing a vulnerable plugin with another vulnerable plugin.
| Check | What good looks like | What is a warning sign |
|---|---|---|
| Last updated | Updated within the last three months | No update in over a year, possibly abandoned |
| Tested up to | Tested up to your WordPress version, or one release behind | Tested up to a version two or more releases behind yours |
| Active installs | Thousands or more, with recent reviews | Under 1,000 installs and no recent reviews |
| Changelog | Regular releases, with security fixes named when they happen | No changelog at all, or years between releases |
| Support forum | Developer replies within days | Unanswered questions stretching back months |
| Vulnerability databases | No open critical flaws, or flaws fixed promptly | Open critical flaw with no fix, or a history of slow fixes |
Migration is the part people rush, and rushing it is how a replacement breaks a live site. Export the old plugin settings and content first, if the plugin offers an export. Install the replacement on a staging copy, import the settings, and rebuild the feature the replacement provides: the form, the gallery, the slider, the checkout page. Test every page that used the old plugin. Check the front end as a logged-out visitor, not just as an admin, because caching and permissions behave differently for visitors. When the staging copy works, deploy the replacement to the live site, migrate the content there, and then remove the old plugin the same day. Do not leave both installed for a week while you decide. The overlap is the risk window, and the vulnerable plugin is still exploitable until its files are gone.
If no good replacement exists, reconsider the feature itself. Many plugins exist to add a feature WordPress core has since added natively. Galleries, embeds, tables, and simple forms can all be done with core blocks now, and a block does not need a security audit. A feature you can drop entirely is a plugin you will never have to patch. The best replacement for a risky plugin is sometimes no plugin at all.
Step 7: Lock the Door After the Audit
The audit finds the flaws. This step makes the next audit easier and the site harder to attack in between. Four habits, done once and then maintained, close most of the gaps the audit exposes.
First, block PHP execution in the uploads folder. WordPress allows file uploads for media, and some plugins allow uploads of their own. If an attacker can upload a PHP file into wp-content/uploads and then run it, they have code execution on your server, which is the worst possible outcome. Blocking PHP execution in that folder stops the attack even if an upload flaw is found in a plugin. For an Apache server, add a .htaccess file inside wp-content/uploads with these two lines.
<FilesMatch "\.(php|php3|php4|php5|phtml|phar)$">
Require all denied
</FilesMatch>
For an Nginx server, add a location block to your server configuration that denies PHP files inside the uploads directory.
location ~* /wp-content/uploads/.*\.php$ {
deny all;
}
Test the block after you add it. Upload a small PHP file to the uploads folder through the media library, or place one there over SFTP, and try to open it in a browser. You should get a 403 Forbidden response. If the file runs, the block is in the wrong place or your server ignores .htaccess, and you need to fix it in the server configuration. Do not skip the test. An untested security control is a guess.
Second, turn on automatic updates for plugins you trust, and review the rest weekly. WordPress lets you enable auto-updates per plugin from the Plugins screen. Enable them for plugins from developers with a strong update history, and keep manual updates for the plugins that break things when they change, like page builders and store plugins. The point is not to automate everything. It is to make sure the critical security update that ships on a Tuesday is installed on Tuesday, not discovered in next month audit.
Third, set up alerts so the five-hour window does not catch you asleep. The Patchstack free plan monitors a limited number of sites and sends an email when a vulnerability is disclosed for a plugin you have installed. WPScan offers email alerts through its API free tier for specific plugins. Wordfence, if you run it, alerts you from its own database. Pick one, configure it with your plugin list, and test it. An alert that goes to an inbox nobody reads is the same as no alert, so use an address you actually check.
Fourth, repeat the audit monthly and keep the inventory. The audit is fast the second time because the inventory already exists: you only check what changed, which plugins updated, which plugins are new, and which findings are still open. Put a recurring reminder in your calendar for the first Monday of every month, and keep each audit report in the template at the end of this guide. Over six months, the reports tell a story: which plugins keep producing findings, which developers patch fast, and which plugins should have been removed long ago. That story is what turns a one-off cleanup into a security habit.
A 30-Minute Audit, Worked End to End
Here is what the whole process looks like on a real site, a small business site running WordPress with twenty-two plugins. The owner runs the inventory, checks the databases, and ends with three updates, one replacement, and two deletions. Thirty minutes, once a month.
The inventory takes ten minutes. WP-CLI lists twenty-two plugins. Two are inactive: an old slider the owner stopped using a year ago, and a migration plugin used once during a site move. One is a premium form plugin bought from a marketplace, with a license that lapsed six months ago. The rest are active, ordinary plugins: a caching plugin, a security plugin, a backup plugin, a contact form, a gallery, an SEO plugin, and a handful of small utilities.
The database check takes fifteen minutes. The owner searches each slug in WPScan and Patchstack. Eighteen plugins come back clean. Four have findings. The caching plugin has a medium cross-site scripting flaw, fixed in version 3.2.1, and the site runs 3.2.0. The gallery plugin has a high broken access control flaw, fixed in version 2.8.4, and the site runs 2.8.1. The old slider, inactive for a year, has a critical arbitrary file upload flaw with no fix, because the developer abandoned the plugin in 2024. The premium form plugin has a high SQL injection flaw, fixed in version 5.1.0, but the license lapsed, so the site cannot download the fix and runs 5.0.3.
| Plugin | Installed | Finding | Fixed in | Decision |
|---|---|---|---|---|
| Caching plugin | 3.2.0 | Medium XSS, CVSS 6.1 | 3.2.1 | Update today |
| Gallery plugin | 2.8.1 | High broken access control, CVSS 7.5 | 2.8.4 | Update today |
| Old slider, inactive | 1.4.2 | Critical arbitrary file upload, CVSS 9.8 | No fix, abandoned | Delete now |
| Premium form plugin | 5.0.3 | High SQL injection, CVSS 8.8 | 5.1.0, license lapsed | Renew license and update, or replace |
| Migration plugin, inactive | 2.1.0 | No findings | Not applicable | Delete, unused for a year |
| All other 17 plugins | Various | No findings | Not applicable | No action |
The decisions take five minutes. The caching plugin and the gallery plugin update from the dashboard, both to their fixed versions, and the owner tests the front page after each one. The old slider is deleted, and the migration plugin is deleted with it. The premium form plugin is the only hard call. Renewing the license costs money, and the plugin is central to the site, so the owner renews the license, updates to 5.1.0 the same day, and notes the renewal date in the inventory so the license never lapses again. Total time: thirty minutes. Total risk removed: two critical and high flaws, one of them unpatched and abandoned, plus two unused plugins that will never be checked again. The next monthly audit starts from an inventory that is already two plugins shorter, and it will be faster.
Complete HTML Audit Report You Can Reuse
Run the audit once and you have a report. Run it monthly and you have a history. The HTML document below is a complete, printable audit report template you can save, fill in, and keep with your site records. It has the inventory table, the findings table, the decisions, and a summary at the top, all in one file, with print styles so it comes out cleanly on paper. Copy it, save it as plugin-audit-report.html, open it in a browser, and fill in your own numbers.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WordPress Plugin Vulnerability Audit Report</title>
<style>
body {
font-family: Georgia, serif;
max-width: 900px;
margin: 0 auto;
padding: 24px;
color: #1a1a1a;
line-height: 1.6;
}
h1 { font-size: 28px; border-bottom: 3px solid #c0392b; padding-bottom: 8px; }
h2 { font-size: 22px; margin-top: 32px; color: #c0392b; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { border: 1px solid #999; padding: 8px; text-align: left; font-size: 14px; }
th { background: #f2f2f2; }
.critical { background: #fde8e8; font-weight: bold; }
.high { background: #fff3e0; font-weight: bold; }
.ok { background: #e8f5e9; }
.summary { background: #f9f9f9; border: 1px solid #ccc; padding: 16px; }
@media print {
body { padding: 0; }
h1 { font-size: 24px; }
}
</style>
</head>
<body>
<h1>WordPress Plugin Vulnerability Audit Report</h1>
<div class="summary">
<p><strong>Site:</strong> example.com</p>
<p><strong>Audit date:</strong> 24 November 2026</p>
<p><strong>Auditor:</strong> Site owner</p>
<p><strong>Plugins checked:</strong> 22</p>
<p><strong>Findings:</strong> 4 (1 critical, 2 high, 1 medium)</p>
<p><strong>Actions taken:</strong> 2 updated, 1 license renewed and updated, 2 deleted</p>
<p><strong>Next audit due:</strong> 24 December 2026</p>
</div>
<h2>Plugin Inventory</h2>
<table>
<thead>
<tr>
<th>Plugin</th>
<th>Slug</th>
<th>Version</th>
<th>Status</th>
<th>Source</th>
</tr>
</thead>
<tbody>
<tr>
<td>Caching Plugin</td>
<td>caching-plugin</td>
<td>3.2.0</td>
<td>Active</td>
<td>WordPress.org</td>
</tr>
<tr>
<td>Gallery Plugin</td>
<td>gallery-plugin</td>
<td>2.8.1</td>
<td>Active</td>
<td>WordPress.org</td>
</tr>
<tr>
<td>Old Slider</td>
<td>old-slider</td>
<td>1.4.2</td>
<td>Inactive</td>
<td>WordPress.org</td>
</tr>
<tr>
<td>Premium Form Plugin</td>
<td>premium-form</td>
<td>5.0.3</td>
<td>Active</td>
<td>Premium vendor</td>
</tr>
</tbody>
</table>
<h2>Findings</h2>
<table>
<thead>
<tr>
<th>Plugin</th>
<th>Vulnerability</th>
<th>CVSS</th>
<th>Fixed in</th>
<th>Decision</th>
</tr>
</thead>
<tbody>
<tr class="high">
<td>Caching Plugin</td>
<td>Stored cross-site scripting</td>
<td>6.1 Medium</td>
<td>3.2.1</td>
<td>Update</td>
</tr>
<tr class="high">
<td>Gallery Plugin</td>
<td>Broken access control</td>
<td>7.5 High</td>
<td>2.8.4</td>
<td>Update</td>
</tr>
<tr class="critical">
<td>Old Slider</td>
<td>Arbitrary file upload</td>
<td>9.8 Critical</td>
<td>No fix</td>
<td>Delete</td>
</tr>
<tr class="high">
<td>Premium Form Plugin</td>
<td>SQL injection</td>
<td>8.8 High</td>
<td>5.1.0</td>
<td>Renew license, update</td>
</tr>
</tbody>
</table>
<h2>Actions Taken</h2>
<ol>
<li>Updated the caching plugin to 3.2.1 and tested the front page.</li>
<li>Updated the gallery plugin to 2.8.4 and tested the gallery pages.</li>
<li>Deleted the old slider plugin and removed its shortcodes from two posts.</li>
<li>Deleted the unused migration plugin.</li>
<li>Renewed the premium form plugin license and updated it to 5.1.0.</li>
<li>Confirmed PHP execution is blocked in wp-content/uploads.</li>
</ol>
<h2>Notes for the Next Audit</h2>
<ul>
<li>Two small utility plugins have not been updated in eight months. Watch them next month.</li>
<li>Premium form plugin license renews on 24 November 2027. Set a reminder for October 2027.</li>
<li>Patchstack email alerts are now configured for all installed plugins.</li>
</ul>
</body>
</html>
Save one filled-in copy per audit, with the date in the filename, and keep them in a folder with your backups. After six months you will have a record that shows which plugins keep producing findings, which developers patch fast, and which plugins should have been removed long ago. That record is also the evidence you need if a client or a manager asks what you did about security: here are the dates, here are the findings, here are the fixes. The template is deliberately plain, because its job is to be readable in a browser, printable on paper, and understandable by someone who was not in the room when the audit happened.
Common Mistakes That Undo a Good Audit
The audit is simple, and the mistakes are simple too. Every one of these has happened on real sites, usually right after a careful audit, because the audit found the flaws and then the follow-through failed. The table is the checklist to run after the audit, before you call the job done.
| Mistake | Why it hurts | What to do instead |
|---|---|---|
| Checking only active plugins | Deactivated plugins can still be exploited through their files | Inventory every plugin, including inactive and must-use |
| Checking only one database | A flaw can appear in Patchstack days before WPScan, or the reverse | Check WPScan and Patchstack, plus Wordfence Intelligence for the serious ones |
| Reading the title, not the fields | The title is scary, the fields say whether you are affected | Compare your version against the affected range and the fixed-in version first |
| Waiting for a fix that will never come | 46 percent of flaws had no fix at disclosure, and abandoned plugins never get one | Treat an empty fixed-in field as a removal decision, not a waiting period |
| Updating without a backup | A bad update breaks the site and there is no way back | Back up files and database before every update round |
| Leaving the old plugin installed after replacing it | The vulnerable files are still on the server and still exploitable | Remove the old plugin the same day the replacement is live |
| Ignoring premium plugins | Premium flaws are 29 percent of disclosures, and the dashboard never warns you | List premium plugins with vendor and license status, and check them by name in the databases |
| Forgetting the uploads folder | An upload flaw plus PHP execution in uploads equals code execution | Block PHP execution in wp-content/uploads and test the block with a real file |
| Treating the audit as a one-off | New flaws are disclosed every day, 36 a day in plugins alone | Repeat monthly, keep the reports, and set up email alerts between audits |
| Installing a replacement without checking it | The replacement can have its own known flaws | Check the replacement in WPScan and Patchstack before installing it |
Frequently Asked Questions
1. How do I check if a WordPress plugin has a vulnerability?
Note the plugin slug, the folder name under wp-content/plugins, and your exact installed version. Search the slug in WPScan, then in Patchstack, then in Wordfence Intelligence. Open each record and compare your version against the affected version range and the fixed-in version. If your version is at or above the fixed-in version, you are safe. If it is below, update. If there is no fixed-in version, the plugin has no patch, and you should remove it or replace it. Check at least two databases, because no single one lists every disclosure on the same day.
2. Are inactive plugins a security risk?
Yes. An inactive plugin is deactivated, not deleted, and its files are still on your server. Several disclosed flaws have been exploitable in deactivated plugins because the vulnerable file can be reached directly, even when WordPress has not loaded the plugin. Must-use plugins are the same: they run on every page load and do not appear in the normal plugin list. The only safe inactive plugin is a deleted one. If you do not use a plugin, delete it. Deleting takes ten seconds and removes the risk permanently.
3. What should I do if a plugin has a vulnerability with no fix?
Remove it, or replace it and then remove it. An empty fixed-in field means the developer has not released a patch, and Patchstack found that 46 percent of 2025 vulnerabilities had no fix at disclosure. Waiting is not a plan, especially for a flaw that is already public and already in the scanners. If the plugin is essential, find a replacement first, vet the replacement in the databases, install it on staging, test it, and then remove the vulnerable plugin the same day. If the plugin is not essential, delete it now and do without the feature, or rebuild the feature with a core block.
4. Is it safe to use a plugin with fewer than 1,000 active installs?
It can be, but it needs more checking, not less. One in five of the bugs disclosed in 2025 and 2026 were in plugins with under 1,000 installs that still have no newer version. Small plugins are the most likely to be abandoned, and an abandoned plugin never gets a fix. Before installing a small plugin, check its last update date, its tested-up-to version, and its support forum. If the developer answers questions and ships updates, the install count matters less. If the plugin has not been updated in a year and the support forum is full of unanswered questions, pick a different plugin, however perfect the feature looks.
5. How often should I audit my WordPress plugins?
Monthly, at minimum, with email alerts between audits. The median time from public disclosure to mass exploitation is five hours, so a monthly check alone will always be late for the fast ones. The monthly audit catches the slow accumulation: the plugin that quietly went unpatched, the license that lapsed, the plugin you forgot you installed. The alerts catch the urgent ones: the critical flaw in a popular plugin, disclosed today, being scanned tonight. Set the audit for the first Monday of every month, keep the reports, and configure alerts from Patchstack or WPScan for the plugins you run. Together, the two cover both speeds of disclosure.
6. Can a security plugin replace a manual audit?
No. A security plugin is a valuable layer, and the WordPress security checklist on this site recommends running one, but it does different work. A security plugin blocks attacks, scans files, and limits logins. It does not always tell you that a plugin you run has a known vulnerability with a fix available, and it cannot decide for you whether an abandoned plugin should be removed. The audit is a decision process: inventory, database check, read the record, update or replace or remove. A security plugin supports that process. It does not replace it. Run both.
7. What is the difference between WPScan, Patchstack, and Wordfence Intelligence?
All three are public vulnerability databases, and they cover overlapping but different ground. WPScan, owned by Automattic, lists 94,710 WordPress vulnerabilities as of November 2026, and offers a free API token for automated checks. Patchstack runs a bug bounty program, publishes its own research, and counted 11,334 new vulnerabilities in 2025. Its database shows a risk score and a disclosure date for each entry. Wordfence Intelligence comes from the Wordfence research team, which publishes a large share of the CVEs each year, and its API is free to query for personal and commercial use. The National Vulnerability Database is the authoritative CVE record maintained by the US National Institute of Standards and Technology. Use at least two of them for every check, because a flaw can appear in one days before the others.
Conclusion
WordPress plugin vulnerabilities are not a mystery and they are not bad luck. They are public, listed, counted, and searchable, and the tools to find them are free. Patchstack counted 11,334 new WordPress vulnerabilities in 2025, and 91 percent of them were in plugins. The databases that list them, WPScan, Patchstack, Wordfence Intelligence, and the National Vulnerability Database, are open to anyone. The audit in this guide takes thirty minutes a month: build the inventory, check each plugin against two databases, read the affected versions and the fixed-in field, and then update, replace, or remove. The decision is a flowchart, not a judgment call, and the flowchart has only three exits.
The part most site owners get wrong is not the check. It is the follow-through. The inactive plugin that stays installed because deleting it feels like losing something. The premium plugin whose license lapsed six months ago and nobody noticed. The flaw with no fix that stays on the live site while the owner waits for a patch that will never come. Every one of those is a choice, and every one of them is fixable in minutes. Delete what you do not use. Renew the license or replace the plugin. Remove the unpatched flaw today, not next month. Block PHP execution in the uploads folder and test the block. Set up the alerts so the next critical disclosure reaches your inbox within hours, not at the next monthly audit.
Your plugins are your site. Twenty or thirty small programs, written by twenty or thirty different people, running with full privileges on every page load. That is an extraordinary amount of trust to place in code you have never read. The audit is how you earn that trust back, one plugin at a time, once a month, with a report you can keep and a list that gets shorter every time you run it. Start today. List your plugins, check the first five, and see what you find. The rest of the list will take care of itself.
Related Articles You Will Love
- WordPress Security Plugin Checklist After PHP2Shell — the fifteen-step lockdown checklist this audit builds on, from plugin updates to file integrity monitoring.
- WordPress PHP Version: How to Check and Update It Safely — the full guide to checking and updating your PHP version, the step this audit assumes is already done.
- PHP2Shell Vulnerability: Affected PHP Versions and Fix — the October 2026 PHP emergency that proved why supported versions matter, with the patched builds.
- CVE-2026-115560 PHP RCE: How to Scan and Secure Your Site — the PHP remote code execution flaw from October 2026, and how to check whether your site was affected.
- WordPress Comment2Shell: CVE-2026-93485 Explained — the September 2026 WordPress comment flaw, and what it taught us about core versus plugin risk.