It's been a rough few months for anyone running WordPress.
In July, a critical flaw in WordPress core let attackers run code on sites without logging in. WordPress pushed an automatic update to fix it. In October, two flaws in PHP itself, nicknamed PHP2Shell, did the same thing one layer down, and this time updating WordPress didn't help at all. A week later came another core flaw, this one in the update process. Attackers were trying it within hours of the fix being released.
If you run a WordPress site, you've probably seen the posts that followed. "The WordPress era is over." "Why we'd go headless." "Your site doesn't need PHP." Some of them make good points. Most of them leave out the same things.
What they're saying
The arguments come in roughly three flavours.
Go headless. Keep your content somewhere else and serve the pages as static files, so there's no PHP for anyone to attack. This one comes mostly from agencies that build headless sites.
Use an AI site builder. Describe your site, let the tool generate it, and let the vendor handle security. This one comes mostly from companies that sell AI site builders.
Move to a hosted platform. Squarespace, Wix, Webflow. Someone else does the patching, and you pay monthly.
Notice the pattern. Most of these posts are written by people who sell the alternative. That doesn't make them wrong. One of them says it outright: they have "a horse in this race." It's still worth knowing who's talking.
What they get right
Running a WordPress site means owning something that needs looking after. WordPress, PHP, the theme, every plugin, the hosting. That's real work, and a lot of businesses were never told it existed.
They're also right that WordPress puts everything in one place. The pages, the admin, the logins and every plugin run on the same server through the same PHP. When PHP has a hole, all of it is exposed at once.
And some sites don't need any of this. A five-page site that changes twice a year, with a contact form and nothing else, can run as static files and be simpler to look after. I'd say that to a client myself.
What they leave out
The alternatives have their own version of this story. React and Next.js, the stack behind a lot of headless sites, had a maximum-severity flaw in December 2025. The headless agencies mention it themselves, if you read to the end.
Static sites move the risk rather than remove it. Your hosting account, your DNS, the third-party scripts on the page and wherever your form submissions go are all still targets. One of the static-site agencies says it would be "dishonest to pretend a static website can't be hacked." They're right.
Hosted platforms take patching off your plate in exchange for a monthly bill, a ceiling on what the site can do, and a site that's hard to move if you ever want to leave. That's a fine trade for some businesses. It's still a trade.
And the move itself isn't free. Content, redirects, forms, integrations, everything the old site does that nobody wrote down. For an older site with a few custom plugins, rebuilding on a new platform can cost about as much as building a new site, because that's what it is.
Where the line actually is
The dividing line this year wasn't WordPress against everything else. It was maintained against unmaintained.
When PHP2Shell was published, most major hosts had released the fix within a day. Firewall rules followed quickly too. For the core update flaw, Wordfence had a rule up about three hours after the fix was announced, and it caught its first attack nine minutes later. Sites that had someone watching were patched, protected, or both, before most owners had read the news.
The sites in trouble were the ones nobody was looking after. PHP versions years out of date, because upgrading broke something and nobody fixed it. Plugins installed once and never updated. Hosting nobody had logged into since launch. Moving those sites to a new platform wouldn't fix that. In a year, they'd be unmaintained somewhere else.
What I'd do if you're worried
Check your PHP version. In WordPress, go to Tools, then Site Health, then the Info tab, and open the Server section. If it starts with 8.1 or lower, that needs a plan.
Ask your host, in writing, whether the October PHP fix is installed on your server. "We patched it" and "it's running on your site" aren't always the same thing.
Find out who's responsible for updates. If the honest answer is "nobody," that's the real problem, and it's the same problem on any platform.
And if your site is small, rarely changes and doesn't need logins, a shop or complex forms, ask whether it needs WordPress at all. Sometimes the answer is no.
For everything else, a WordPress site with someone looking after it is in a very different position from one without. That's most of what ongoing maintenance and security work are for.