The gap between disclosure and patching
Most hacked WordPress sites aren’t hit by brand-new, unknown attacks. They’re hit through known flaws in software that hasn’t been updated.
Security firms such as Wordfence and Sucuri report this year after year. In most of the hacked sites they clean up, an outdated plugin with a publicly known flaw was the way in.
So most WordPress hacks could be prevented. It’s more useful to understand why they still happen than to learn the technical details of every flaw.
How WordPress vulnerabilities are found
A vulnerability is a security flaw that an attacker can use. They’re found in four main ways.
Security research
Companies such as Wordfence, Patchstack and WPScan employ researchers who check WordPress plugins and themes for flaws. Most vulnerabilities are found this way.
Bug bounty schemes
Some plugin developers pay rewards to people who find and privately report flaws.
Automated scanning
Tools scan plugin code for patterns that often lead to flaws, such as SQL injection or cross-site scripting.
After a hack
Sometimes a flaw is only found when experts examine a hacked site and work out how the attacker got in.
Responsible disclosure
When researchers find a flaw, they usually follow a process called coordinated disclosure:
- They tell the developer privately. This gives the developer time to write a fix.
- The developer gets a deadline. It’s usually 30 to 90 days to release a patch.
- The flaw is made public. This happens once a patch is out, or when the deadline passes.
If a critical flaw isn’t fixed in time, WordPress.org and commercial marketplaces can pull the plugin from download.
The process is meant to give site owners time to update before attack code is public. But that time is shorter than most people think. Automated attack tools start looking for newly announced flaws within hours.
The exploit timeline
The time between a flaw being made public and mass attacks has shrunk. For a serious flaw in a popular plugin, it typically looks like this:
- Day 0: the patch is released and the flaw is made public.
- Hours 1 to 24: technical details are published, and example attack code often appears.
- Days 1 to 3: automated attack tools add the new flaw, and mass scanning starts.
- Days 3 to 7: attacks on unpatched sites peak.
So an unpatched site is at real risk within days, not weeks. Updating “when you get round to it” isn’t safe.
Types of WordPress vulnerabilities
Knowing the main types helps you judge how urgent an update is.
SQL injection
An attacker slips their own commands into the site’s database queries. They can then read, change or delete anything in the database, including passwords and customer details. This is critical.
Cross-site scripting (XSS)
An attacker adds harmful JavaScript to pages other people see. The worst kind is saved in the database and shown to every visitor. It can be used to create admin accounts, redirect visitors or steal logins.
Cross-site request forgery (CSRF)
A logged-in user is tricked into doing something they didn’t mean to. How serious it is depends on the action. Anything an admin can do is high risk.
File inclusion
An attacker makes the server load and run a file of their choosing. If the file can come from another server (remote file inclusion), it’s critical, because the attacker can run their own code.
Broken access control
Admin-only features can be used by lower-level users, or by visitors who aren’t logged in at all. How serious it is varies a lot.
Unrestricted file upload
Users can upload file types they shouldn’t, especially .php files. If an attacker can upload one and open it in a browser, they can run their own code on your server.
How serious is it? CVSS scores
Flaws are scored from 0 to 10 using the Common Vulnerability Scoring System (CVSS). A sensible response for each band:
- 9.0 to 10.0 (critical): patch or block within 24 hours.
- 7.0 to 8.9 (high): patch within 72 hours.
- 4.0 to 6.9 (medium): patch within 7 days as part of normal maintenance.
- 0.1 to 3.9 (low): include in your next scheduled update.
Wordfence and Patchstack both publish CVSS scores with their reports.
Virtual patching
Even with a quick process, there’s a gap between a critical flaw going public and you safely updating. Virtual patching covers that gap.
A virtual patch is a firewall rule. It blocks requests that try to use one specific flaw, before they reach the vulnerable code. Your site is protected even while it still runs the old plugin version.
It’s most useful in the first hours after a critical flaw is announced. On managed hosting with an active firewall and a feed of new vulnerabilities, virtual patches are applied for you automatically.
A practical update plan
Based on the timeline above, this approach balances security and stability. It works best alongside good plugin practices, such as removing plugins you don’t use.
Automatic updates for low-risk plugins
Turn on automatic updates where an update is unlikely to break anything. That covers most utility, security and SEO plugins. Running a vulnerable version is usually a bigger risk than a small update.
Test high-risk plugins first
Some plugins are deeply tied into how your site works. WooCommerce, your page builder and complex shop add-ons are good examples. Test their updates on staging before they go live. This is where a staging environment earns its keep.
Have an emergency process
For critical flaws (CVSS 9.0 and above), be able to update within 24 hours. That means:
- your staging site is available and reasonably up to date
- you take a backup just before updating
- you can push the change live quickly
Get alerts
Don’t rely on the update badges in your WordPress dashboard. Sign up for a vulnerability alert service instead. Patchstack and Wordfence both email you when a plugin you use has a new flaw. You’ll hear about critical problems straight away, not the next time you log in.
What managed hosting does for you
On a well-run managed hosting platform:
- virtual patches are applied at the firewall for known critical flaws, usually within hours
- new vulnerability reports are monitored, and fixes are pushed out proactively
- you’re told when a plugin on your account has a critical, unpatched flaw
- malware scanning spots a hack early if a flaw is used before you patch
You’re still responsible for updating your own plugins and themes. But managed hosting shrinks the risky window and gives you a safety net while it’s open. For more on why the server layer matters, read WordPress security is an infrastructure problem.
Frequently Asked Questions
What is a WordPress vulnerability?
It’s a security flaw in WordPress itself, in a plugin or in a theme that attackers can use to break into a site. Common types include SQL injection, cross-site scripting, broken access control and unrestricted file uploads. Security firms such as Wordfence and Sucuri report that most hacked sites they clean were running an outdated plugin with a publicly known flaw.
How quickly are WordPress vulnerabilities exploited after disclosure?
Usually within hours or days. For serious flaws in popular plugins, example attack code often appears within 24 hours of the patch. Mass automated scanning starts within 1 to 3 days. So unpatched sites are at real risk within days, not weeks, which is why quick patching matters.
Should I enable automatic updates for WordPress plugins?
Yes, for most plugins. Running an outdated, vulnerable plugin is usually riskier than a small update causing a problem. For high-risk plugins, such as WooCommerce, page builders and plugins your site depends on, test updates on staging first. Turn on automatic updates for utility, security and SEO plugins, where the risk of breakage is low.
What is virtual patching for WordPress?
It’s a firewall rule that blocks attempts to use one specific flaw, so you’re protected before you update the plugin. The block happens on the server, before the request reaches the vulnerable code. Managed hosts with an active firewall and a vulnerability feed apply these rules automatically, usually within hours of a critical flaw being announced. That protects you until your plugin is updated.
How do I know if my WordPress plugins have security vulnerabilities?
You can check the Wordfence vulnerability database, Patchstack’s vulnerability feed or the WPScan command-line tool. Patchstack and Wordfence Intelligence can also email you when a new flaw affects a plugin on your site. On managed hosting, your host tracks your plugins and alerts you to critical flaws automatically.