AI Found a WordPress Bug in Six Hours. What That Changes About Trusting a Plugin

AI found a WordPress plugin bug in six hours — what that changes about trusting a plugin

Written by

in

A reporter who had never hunted a vulnerability before found a real one in a WordPress plugin with more than 40,000 active installs. It took six hours and two free AI models. The bug was a cross-site request forgery in a file editor — ordinary, serious, and now cheap to find. That last part is what should change how you choose plugins: “nobody has found a problem with it” is no longer evidence that a plugin is safe. It is evidence that nobody has looked recently with tools that cost nothing.

The short version

  • Discovery cost collapsed: six hours, two free models, one validated CVE (CVE-2026-124251).
  • Volume follows: Wordfence logged 388 vulnerabilities across 288 plugins and 29 themes in one week.
  • Exploitation speed follows too: WP Rocket’s RCE was patched on 19 November and first attacked on the 25th.
  • Maintenance is a security signal, but “last updated” alone is not enough. Who can push a release matters as much as when the last one shipped.
  • Before installing, run a 15-minute review: one job, recent release, readable changelog, and an AI pass over the request handlers — with every claim checked in the code.

What happened this week

Three stories, one direction.

Discovery. Greg Otto’s CyberScoop diary walks through it: two free language models, a hypothesis, a manual test, a report. Patchstack validated it within 24 hours as CVE-2026-124251; the maintainer patched and thanked him. No security team, no budget.

Supply chain. On 22 November a compromised WordPress.org account pushed backdoored releases of six WP Connect plugins — CVE-2026-135202, CVSS 9.8 — toward more than 3,600 sites before the release hold stopped distribution. I wrote about that one here. The lesson is not that plugins are bad; it is that a plugin’s reputation is only as strong as one account’s password.

Exploitation. WP Rocket’s unauthenticated remote code execution bug, CVE-2026-125812, was fixed in 3.24.2 on 19 November. The first exploit attempt came on the 25th and mass scanning the next day. Six days — and that is premium software with a manual update path.

Why discovery got cheap

Plugin vulnerabilities are not new; WordPress has always had a long tail of abandoned code. What changed is the cost of looking. Reading unfamiliar PHP used to be the expensive part. An AI model now summarizes request handlers in seconds and points at the missing check. Verification is still human work, but it takes minutes when discovery used to take days.

The same saving applies to attackers. Advisories name the plugin, the affected versions, and often the vulnerable parameter; turning that into a scan is scripted work. If your update habit runs on a monthly reminder, you are not behind the disclosure — you are behind the attack.

Context for the volume: Wordfence counted 388 vulnerabilities for 9–15 November, but 66 were unpatched at publication and only 21 were critical. Most will never touch you. The one that matters is in a plugin you run, at a version you have, in a configuration that is reachable — a much smaller set, and one you can check in fifteen minutes.

What this does not mean

It does not mean every plugin is unsafe, or that an AI hands you a working exploit. Most published issues are medium severity, need an authenticated account, or depend on a setting most sites never enable. It also does not mean a security plugin solves it: a firewall sits in front of vulnerable code, and only removing code removes the risk. And AI review produces false positives — treat its output as leads, not findings.

What “maintained” means now

“Last updated three weeks ago” is the metric everyone quotes, and it is the easiest one to fake with a version bump. Before installing a plugin, I want four things:

  • A changelog that names security fixes. “Minor bug fixes and improvements” tells you nothing. “Fixed missing capability check in the export handler” tells you the maintainer reviews their own code.
  • One job. A plugin that bundles a slider, popup, form and font loader is a stack with one update button. Every feature is another request handler.
  • A realistic release history. Regular small releases beat one big annual one. A plugin with no release in two years is not automatically dangerous, but nobody is looking for its bugs either.
  • Who can push a release. The WP Connect backdoor came through one stolen account. WordPress.org’s release hold caught it; a premium plugin sold on its own site has no such gate. That is a reason to prefer the repository when the plugin is otherwise equal.
Signal What it probably means What I do
Security fix named in the changelog The maintainer reads their own code Good sign. Keep it updated.
Only “compatibility updates” for 18 months Nobody is maintaining it Find an alternative before it breaks
One maintainer, no security contact One password away from a backdoor Prefer the repository; remove if small
Five jobs in one plugin Five times the request handlers Split it or replace it
Premium, manual updates Your patch delay is your exposure Calendar reminder plus host patching

Then check the update path. Repository plugins can auto-update; premium plugins usually wait for a human. If the plugin is premium and security-critical, put its updates on a calendar, not on a hope.

The AI review I actually run

I am not a security researcher, and this does not make me one. But a fifteen-minute AI pass over a plugin’s request handlers catches the obvious classes of bug before the plugin touches a site.

Download the plugin zip, unpack it, and open the main file plus anything in includes/ or inc/. Paste the request-handling code — the add_action('wp_ajax_…') lines, the register_rest_route calls, and the functions they point to — into a model with this brief:

You are reviewing a WordPress plugin for a small site owner, not writing an exploit.
For each AJAX action and REST route below, answer:
1. What does it do, and who can trigger it?
2. Does it check a nonce, and does it check a capability?
3. Does user input reach SQL, a file path, eval, or an HTTP request without sanitizing?
4. What is the worst outcome if the check is missing?
Quote the function names you base each answer on.
Say "not enough context" when the code shown does not prove it.

Then open every file it names and check the claim yourself. The functions to search for are boring: current_user_can, check_ajax_referer, wp_verify_nonce, $wpdb->prepare, sanitize_*, esc_*. If a handler has none of the first three, treat that as a question, not a verdict. Some handlers are read-only and harmless; some are not, and the difference is usually one line of context.

Where the model fails: it cannot see your configuration, it invents line numbers, it misses logic that spans three files, and it will confidently call a safe function unsafe. Never run the plugin’s code to “test” a finding on a live site. The value is in the list of places to look, not in the model’s conclusion.

The decision rule

Install only if all four are true: one clear job, a release in the last year, a changelog that names security fixes, and an update path you will actually use. If one is missing, look for a smaller alternative. If two are missing, the thirty lines you would write yourself are probably safer than the plugin.

Discovery is cheap now, in both directions. You cannot control how fast someone finds the next bug in a plugin you use. You can control how many plugins you trust, how much evidence you demand before trusting them, and how fast you patch when the answer changes.

Adjacent routines, if you want them: the twenty-minute plugin audit and how to read a vulnerability disclosure without panic.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *