ScaleStation Blog: Insights on HubSpot & Digital Marketing

WordPress Security: Why B2B Sites Get Hacked (2026)

Written by Kieran Krohn | 3 Nov 2026, 10:00:00 pm

WordPress security is the practice of keeping a WordPress site's core, plugins, themes, hosting and user accounts patched and controlled so attackers cannot run code on it. B2B WordPress sites get hacked because plugins carry 91% of disclosed vulnerabilities and attackers exploit new flaws within hours of disclosure.

Patchstack recorded 11,334 new WordPress vulnerabilities in 2025, a 42% increase on 2024, and 46% had no developer fix when they were publicly disclosed (Patchstack, State of WordPress Security in 2026). For an Australian mid-market company whose website captures pipeline, that makes WordPress a recurring operational risk, not a finished build.

This guide covers:

  • Why B2B WordPress sites get hacked and where the vulnerabilities sit
  • How fast attackers move, using the CVE-2026-87902 core flaw as the live example
  • An eight-control security checklist and an incident response sequence
  • When fixing WordPress is the wrong strategy and a managed CMS is the better one

Why do B2B WordPress sites get hacked?

B2B WordPress sites get hacked because they run a large third-party plugin stack that is patched late, administered by too many people and defended by too few controls. Attackers scan for known flaws automatically, so a site is targeted because it is vulnerable, not because of who owns it.

ScaleStation sees the same four conditions behind most B2B WordPress exposure:

  • Plugin sprawl. Form builders, popups, SEO tools, CRM connectors and page builders each add code the company does not control.
  • No named patch owner. The agency that built the site has moved on, marketing assumes IT owns it, and IT assumes the agency does.
  • Excess administrator access. Former contractors, agencies and staff keep admin accounts that never get removed.
  • Shared or unmanaged hosting. Many sites sit on hosting plans with no server-level isolation, monitoring or firewall.

Automated scanners do not filter by company size. A $20M B2B firm with a lead-generating website is as findable as any other site running the same vulnerable plugin version.

Where do WordPress vulnerabilities actually come from?

Plugins are the source of WordPress vulnerabilities. Patchstack's State of WordPress Security in 2026 report found plugins accounted for 91% of 2025 disclosures, themes 9%, and WordPress core only six reported issues, all low priority. Plugin count is therefore the main security lever a B2B team controls.

Component Share of 2025 vulnerabilities What it means for a B2B site
Plugins 91% Audit every plugin and remove any that is not essential
Themes 9% Use a maintained theme and delete inactive ones
WordPress core 6 reported, all low priority Keep current, because core flaws are rare but severe when they land

Two further figures define the problem. 46% of vulnerabilities had no developer fix at the time of public disclosure, so updating alone cannot protect a site. And 1,966 vulnerabilities (17%) were classed as likely to be used in automated mass-scale attacks, which is the category that reaches B2B sites first.

The practical conclusion is that plugin count is a security metric. Every plugin removed is attack surface that no patch cycle has to cover.

How fast do attackers exploit new WordPress vulnerabilities?

Attackers exploit serious WordPress vulnerabilities within hours of disclosure. Patchstack measured a weighted median of 5 hours to first exploit for heavily exploited vulnerabilities, and about half of high-impact vulnerabilities were exploited within 24 hours. A monthly patch cycle leaves a site exposed for weeks.

CVE-2026-87902 shows the pattern. It is a critical WordPress core remote code execution flaw rated 9.2, affecting versions 4.7.0 through 7.1.1, and patched in 7.1.2, 7.0.6, 6.9.9 and 6.8.10. Probing began at around 17:44 UTC on 22 September 2026, under five hours after WordPress 7.1.2 became available, and escalated from harmless file probes to attempts to write PHP files and deploy web shells (eSecurity Planet). Exploitation needs specific conditions, including an active theme directory beginning with page- and a readable local PHP file on the server, but conditional flaws still compromise the sites that meet them.

On 30 October 2026, The Hacker News reported that a WordPress RCE flaw drew nearly 63,000 attack attempts in 24 hours (The Hacker News). WordPress 7.1 was released on 19 August 2026 and the current patch release is 7.1.4, issued on 28 October 2026 (endoflife.date). Only the latest release is actively maintained, so a site pinned to an older branch depends on backported fixes arriving.

ScaleStation recommends this patch service level for B2B sites:

Update type Apply within
Critical WordPress core patch 24 hours
Plugin with a known exploited vulnerability 24 hours
Other security updates 7 days
Feature updates 30 days, tested on staging first

What does a hacked B2B WordPress site cost the business?

A hacked B2B WordPress site costs more than the clean-up. It interrupts lead capture, damages search visibility, and can trigger notification duties under the Privacy Act 1988 when personal information in form submissions or a connected CRM is accessed. Each of these costs lands on revenue teams, not only on IT.

  • Lost pipeline. Forms, demo requests and tracking go offline or get redirected while the site is quarantined.
  • Search and trust damage. Injected spam pages and browser warnings reduce rankings and buyer confidence.
  • Remediation labour. Forensic review, credential rotation and rebuild work, typically billed in AUD at agency or contractor day rates.
  • Regulatory exposure. The Notifiable Data Breaches scheme applies to organisations covered by the Privacy Act, which generally includes businesses with annual turnover above $3 million.

The OAIC recorded 667 notifications in January to June 2026 (OAIC). A mid-market ANZ company in the $5M to $50M revenue band sits inside the scheme, so a compromised site that exposes contact data is a compliance event as well as a technical one. Confirm your obligations with legal counsel before an incident, not during one.

What is the WordPress security checklist for B2B teams?

A WordPress security checklist for B2B teams has eight controls: patch critical flaws within 24 hours, cut plugins to the minimum, enforce two-factor authentication, restrict administrator access, run a web application firewall, keep tested off-site backups, log and monitor changes, and use isolated, supported hosting.

  1. Patch on a defined service level. Use the 24-hour critical and 7-day security windows above, with a named owner and a staging site for testing.
  2. Cut the plugin stack. Delete inactive plugins and themes. Replace any plugin with no release in the last 12 months. Track plugin count as a metric.
  3. Enforce two-factor authentication. Require it for every administrator and editor account, and use unique, long passwords.
  4. Restrict administrator access. Give each person the lowest role that works and remove former contractors and agencies the day an engagement ends.
  5. Run a web application firewall. Choose one with virtual patching so known plugin flaws are blocked while the vendor fix is pending.
  6. Keep tested off-site backups. Store daily backups away from the host and run a restore test every quarter. An untested backup is an assumption.
  7. Log and monitor. Alert on new administrator accounts, file changes, new PHP files and failed login spikes.
  8. Harden the server. Disable the dashboard file editor with define('DISALLOW_FILE_EDIT', true); in wp-config.php, disable XML-RPC if unused, and run a PHP version that still receives security support.

Does a security plugin or firewall keep WordPress safe?

No. A security plugin or web application firewall reduces risk but does not replace patching. In Patchstack's penetration tests, hosting-level defences blocked 12% of attacks on known exploited WordPress vulnerabilities and 26% of a broader attack set. Use both layers, and treat neither as the fix.

The reporting on CVE-2026-87902 reaches the same conclusion: treat firewall rules as a supplementary layer, not a replacement for updating core. Use the layers for what they do well:

  • Firewall with virtual patching: buys time between disclosure and patch.
  • Security plugin: scans for malware, limits login attempts and records changes.
  • Patching and plugin removal: closes the vulnerability itself, which is the only fix that holds.

What should you do when a WordPress site is hacked?

When a WordPress site is hacked, isolate it, preserve the logs, find and close the entry point, restore from a clean backup, rotate every credential and patch before bringing it back online. Restoring a backup without closing the original vulnerability results in reinfection.

  1. Take the site offline or behind a maintenance page, and preserve server and access logs before changing anything.
  2. Review logs and file changes from the date of exposure for traversal requests, new PHP files, unexpected PHP processes, outbound connections and unauthorised administrator accounts.
  3. Identify the entry point, usually an outdated plugin, a stolen credential or a vulnerable core version.
  4. Restore from a backup taken before the first sign of compromise, or rebuild from clean core files and trusted plugin copies.
  5. Rotate every credential: WordPress users, database, hosting, SFTP and any API keys stored on the site.
  6. Patch the entry point and everything else on the site, then rescan before going live.
  7. Assess whether personal information was accessed and decide on OAIC and customer notification with legal counsel.

Is fixing WordPress security the right strategy for your site?

Fixing WordPress security is the right strategy when the site depends on custom WordPress functionality and someone owns patching. It is the wrong strategy when nobody owns patching, because a managed CMS removes core, hosting and firewall maintenance from your team entirely.

HubSpot states that sites on its hosting are protected by 24/7 security and threat detection, SSL and a web application firewall (HubSpot). That moves platform patching to the vendor. It does not move account security or custom code, which stay yours on any platform.

Security task WordPress (self-managed or agency-managed) HubSpot CMS Hub (managed)
Core and platform patching Your team or host, on your schedule Operated by HubSpot
Third-party plugin risk Large attack surface; 91% of vulnerabilities Smaller surface; apps and custom code still need review
Firewall, SSL and monitoring You select, configure and pay for them Stated as included by HubSpot
User accounts and 2FA Your responsibility Your responsibility
Flexibility Highest; any plugin or custom build Lower; constrained to the platform
Migration effort None One-off project to move content, URLs and redirects

The trade-off is flexibility and migration effort. ScaleStation's position: B2B companies without a named patch owner, or with a plugin stack they cannot fully inventory, should move off self-managed WordPress. Companies with a disciplined patch process and genuine custom requirements can stay and apply the checklist above. For the decision framework see when to migrate from WordPress, and for the platform comparison see WordPress vs HubSpot CMS for B2B. If you decide to move, the WordPress to HubSpot CMS migration guide covers the process, and WordPress alternatives for B2B companies and the best CMS for B2B in Australia cover the wider options. For cost, see the true cost comparison for Australian B2B.

TL;DR: WordPress Security for B2B Teams

WordPress security fails at the plugin layer and the patching process, not at the platform core. Plugins carried 91% of 2025 vulnerabilities, 46% had no fix at disclosure, and attackers move within hours, so B2B sites need a 24-hour critical patch window, a smaller plugin stack, two-factor authentication, a firewall and tested backups. If nobody on your team owns those controls, a managed CMS is the lower-risk operating model. Patchstack's 2025 data of 11,334 new vulnerabilities, up 42% year on year, shows the pressure is rising.