web · cms · security

WordPress or a headless CMS: which should you choose in 2026?

Author:
Max Rosberg Somerlock
Published:
14 min read

Short answer

For a new website in 2026, a headless CMS with a solution tailored to your site is almost always a better choice than WordPress. The reason is maintenance: WordPress needs constant plugin and PHP updates, and neglected sites become easy targets, as PHP2Shell showed in October 2026. WordPress still makes sense if you already run a well-kept site with few plugins and a maintenance budget.

What is the difference between WordPress and a headless CMS?

WordPress is a traditional, coupled CMS: one PHP application stores the content, runs the admin area and builds every page a visitor sees. A headless CMS only stores content and serves it through an API, and the website itself is a separate front end that fetches it.

A WordPress site is therefore a server running PHP, a database, a theme and a stack of plugins, all of which the owner has to keep up to date. In a headless setup, the content lives in a separate CMS, often a cloud service the vendor operates, and pages can be built ahead of time and served as plain HTML. Editors work in their own editing interface rather than in a PHP admin area on the company's server.

WordPress is still by far the biggest platform. W3Techs reports that on 29 October 2026 it ran 39.5% of all websites and 58.3% of the sites whose CMS it can identify. That reach is exactly what makes it the obvious target for automated attacks: one flaw in a popular plugin can be exploited on an enormous number of sites at once.

What is PHP2Shell, and what does it mean for WordPress?

PHP2Shell is a pair of critical vulnerabilities in PHP itself, CVE-2026-109618 and CVE-2026-109619. Both let an attacker run their own code on the server without logging in, and both are rated 9.2 out of 10 on CVSS. They were discovered in August 2026 with the help of advanced AI models and made public on 20–21 October 2026. On 21 October the PHP project released fixed versions: 8.2.35, 8.3.36, 8.4.27 and 8.5.12.

Because the flaws are in PHP rather than in any one application, every site on a vulnerable PHP version is exposed, however secure its own code is. PHP runs nearly 70% of the websites whose server-side language can be detected, including platforms such as WordPress, Drupal and Joomla. The result has been a global race to patch. Governments in the UK, the Netherlands, Finland and Australia, among others, temporarily took public websites and digital services offline while they waited for the updates, and the US agency CISA urged everyone to patch immediately.

Neglected sites are hit hardest. The PHP project is not shipping new official releases of 8.1 or older, and WordPress.org's statistics show about 32% of WordPress sites on exactly those versions. For them, installing an update is not enough: PHP itself has to be upgraded, and the theme and every plugin then have to work on the new version. A headless site whose front end and CMS don't run PHP is not affected at all. If you run WordPress, check your PHP version today: the five-minute check further down shows how.

Why we advise against WordPress for new sites

Because its security depends on maintenance that often never happens. WordPress core has few vulnerabilities. The risk sits in plugins, themes and old PHP versions, and in nobody looking after the site once it has launched.

  • Plugins are the main problem. Patchstack's State of WordPress Security in 2026 counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, up 42% on 2024. 91% were in plugins and 9% in themes. Core had 6, all low priority.
  • Fixes arrive late. 46% of vulnerabilities had no fix from the developer by the time they were disclosed. For the most heavily exploited flaws, the weighted median time to first exploitation was 5 hours.
  • Old holes stay open. Only four of the ten most-attacked vulnerabilities in 2025 were published that year. The rest were older, and they hit sites that were never updated. In Patchstack's tests of common hosting defences, only 26% of attacks were blocked.
  • PHP ages out. The PHP project currently gives security support to versions 8.2 to 8.5, and support for 8.2 ends on 31 December 2026. WordPress.org's own statistics show about 32% of WordPress sites on PHP 8.1 or older, and another 23% on 8.2. Unless configured otherwise, PHP also announces its version number in every response (the X-Powered-By header), so a single request is enough to see which version a site runs.
  • Performance lags. In HTTP Archive's Web Almanac 2025, 45% of WordPress sites passed Google's Core Web Vitals on mobile, which puts WordPress among the weakest of the ten platforms compared.

Then there is platform risk. In September 2024, in the middle of a legal dispute, WordPress.org cut the WordPress host WP Engine off from its servers. On 12 October 2024, WordPress.org took over the Advanced Custom Fields plugin and re-released it as Secure Custom Fields. Sites with automatic plugin updates from WordPress.org were switched over without their owners doing anything. ACF is back in the directory today, maintained by its original team, but the episode showed that whoever controls the update channel also controls the code on your site.

There are exceptions. If you already have a well-maintained WordPress site on a supported PHP version, with few plugins and someone accountable for updates, there is no rush to move. And if there is no budget for development at all, a hosted site builder, where the vendor handles updates, is usually safer than WordPress on budget shared hosting.

What does cheap hosting cost after the first year?

Considerably more. Budget hosts advertise an introductory price for the first subscription period, and the regular price applies after that. At one.com and the Swedish host Loopia, regular hosting prices were between 2.7 and 7.2 times the introductory ones.

one.com's Swedish price page showed these prices on 29 October 2026, excluding VAT:

  • Starter hosting: SEK 29 a month for the first year (SEK 348 paid upfront), then SEK 948 a year on renewal, which works out at SEK 79 a month.
  • Professional hosting: SEK 29 a month for the first year, then SEK 1,548 a year, or SEK 129 a month.
  • A .se domain: SEK 9 for the first year and free with hosting, then SEK 269.

With Starter and a .se domain, the bill goes from SEK 348 in year one to SEK 1,217 in year two, roughly 3.5 times as much. Under one.com's terms, subscriptions run for 12 months at a time, renew automatically 30 days before the next period starts, and must be cancelled at least 30 days before the period ends. Loopia's Privat plan follows the same pattern: SEK 39 a month in the first year, then SEK 159 a month excluding VAT.

The price itself is not the real issue. The issue is that hosting for under SEK 100 a month buys room for a WordPress install but nobody to look after it. The PHP figures above suggest that many sites are built once and then left alone, with old plugins and an unsupported PHP version. Those are precisely the sites automated attacks are looking for.

What we build instead, and what it costs to run

We are a headless CMS studio, and we don't tie ourselves to a single platform. Which CMS, front end and hosting we choose depends on what each site needs: how the content is structured, who edits it, which systems the site connects to and what the budget allows. What our solutions have in common is that the content is kept separate from the website itself, and pages are often built ahead of time so they can be served as finished HTML from a CDN.

That shrinks the attack surface in three ways:

  • There is no PHP admin on the same server as the public site. Logins and the content API are handled by the CMS, separate from the site visitors reach.
  • There are no plugins installed and updated through an admin panel. Dependencies are pinned in the codebase and updated when the developer decides.
  • Pre-rendered pages are served as finished HTML, so no code runs on a server when a visitor loads them.

None of this makes a site unhackable. On 3 December 2025 the React team disclosed a critical vulnerability in React Server Components, CVE-2025-55182, rated CVSS 10.0, which affected Next.js among others. Anyone using the feature had to update straight away. The difference is that the fix is applied once, in a version-controlled codebase, and tested before it ships, rather than plugin by plugin in an admin panel.

Running costs are often low for a typical business site, though they depend on which tools suit the project. For example, Sanity's Free plan costs $0 and covers 20 users and 10,000 documents, including live previews and visual editing, and Growth is $15 per user per month. Hosting on Vercel's Pro plan costs $20 a month excluding VAT, and a commercial site needs it, because the free Hobby plan is for personal, non-commercial use only. Where headless costs more is the build: a solution built for the job takes longer than installing a ready-made theme.

Already on WordPress? The minimum you must do

You don't need to rebuild in a panic, but someone has to own the maintenance. This is the minimum a WordPress site needs in 2026:

  1. Update core, plugins and themes at least weekly, and turn on automatic updates where you can. When exploitation starts within hours, a monthly check is not enough.
  2. Delete plugins and themes you don't use. A deactivated plugin is still on the server. Replace plugins that have not been updated for a long time.
  3. Run a supported PHP version. Choose 8.3 or newer so you don't have to switch again at the turn of the year, when 8.2 loses support, and install security fixes as soon as they ship. After PHP2Shell, that means at least 8.3.36, 8.4.27 or 8.5.12.
  4. Keep backups outside your hosting account and test a restore.
  5. Turn on two-factor authentication for every administrator and remove accounts nobody uses.
  6. Budget for maintenance every month, or move to a managed WordPress host that applies updates for you. Check the renewal price before you sign.

When to migrate, and how to keep your rankings

It is time when the site needs rebuilding anyway, or when maintenance costs more than it returns. Typical signs:

  • The PHP version is out of support, and the theme or key plugins break on a newer one.
  • The site depends on premium plugins nobody pays licences for any more. Patchstack found three times as many known exploited vulnerabilities in premium components as in free ones.
  • Nobody can say who updates the site.
  • A redesign or a new structure is planned anyway.

A planned move does not have to cost you search traffic:

  1. Export the content. WordPress exports posts, pages, categories, tags and users to an XML file (WXR) under Tools → Export, and the REST API exposes the same content to a migration script. How it is then imported depends on which CMS suits the site, and many vendors publish their own guides. Sanity, for example, has a course on moving WordPress content, including images and converting HTML into structured text.
  2. Keep your URLs for everything that stays. The same address for the same content is the safest way to keep your rankings.
  3. 301-redirect the rest. Map every old URL to its new home. Google's site move guidance says 301 redirects don't cause a loss of PageRank and that redirects should stay in place for at least a year.
  4. Watch Search Console. Expect rankings to fluctuate for a few weeks while Google recrawls the site.

Don't change domain at the same time. Google recommends making one big change at a time, and switching CMS already counts as one.

Frequently asked questions

  • WordPress core is reasonably safe, but a WordPress site is only as safe as its plugins and its maintenance. Patchstack counted 6 core vulnerabilities in 2025 against 11,334 across the whole ecosystem, 91% of them in plugins, and 46% had no fix when they were disclosed. A site with a few well-maintained plugins, a supported PHP version and weekly updates can be safe. A forgotten site on budget hosting is not. PHP2Shell, two critical vulnerabilities in PHP made public in October 2026, also showed that PHP itself has to be updated as soon as a fix exists.
  • PHP2Shell is a pair of critical vulnerabilities in PHP, CVE-2026-109618 and CVE-2026-109619, that let an attacker run code on the server without logging in. The flaws are in PHP, not in WordPress, so every WordPress site on a vulnerable PHP version is exposed, whatever its theme and plugins. Update to PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later, or ask your host to confirm it has. If the site runs 8.1 or older, no new official release is coming, and PHP has to be upgraded.
  • Because the first year was almost certainly an introductory price, and renewal is charged at the regular rate. On 29 October 2026, one.com's Starter hosting cost SEK 29 a month for the first year and SEK 948 a year on renewal, excluding VAT. The subscription renews automatically 30 days before the period ends, so cancel or switch before then. WordPress.com's own help pages warn that many hosts double or triple the price at the next payment.
  • In WordPress, go to Tools → Site Health, open the Info tab and look under Server. The Status tab also warns you if the PHP version is outdated. Most hosts show the version in their control panel too. Then compare with php.net: on 29 October 2026, versions 8.2 to 8.5 have security support, and 8.2 loses it on 31 December 2026. If your site runs 8.1 or older, PHP itself gets no security fixes. Since PHP2Shell in October 2026, the version also needs to be at least 8.2.35, 8.3.36, 8.4.27 or 8.5.12.
  • Yes, if you keep your URLs where you can and 301-redirect the rest. Google says 301 redirects don't cause a loss of PageRank, but rankings can fluctuate for a few weeks while the site is recrawled. Map every old URL before the move, keep the redirects for at least a year and monitor Search Console. Avoid changing your domain at the same time as your CMS.
  • It usually costs more to build, but not necessarily more to run. A front end written for the job takes longer than installing a ready-made WordPress theme. Running costs can be low, depending on which tools suit the project: Sanity's Free plan, for example, costs $0 for up to 20 users, and Vercel's Pro plan is $20 a month. For comparison, one.com's Starter hosting costs SEK 948 a year after the first year, before the maintenance WordPress needs.
  • Yes. A headless CMS has a web interface with fields for headings, text, images and links, and most offer previews, so editors can see a change on the page before publishing it. Our clients edit their content directly in our client portal. The difference from WordPress is that developers define the structure. That makes it harder to break a layout by accident, but brand-new page types need a developer.
  • No. Both run the same WordPress software, but WordPress.com is a commercial service owned by Automattic that includes hosting, updates and backups. WordPress.org is the project's home, where you download the software for free and then pay for hosting and handle maintenance yourself. It is the self-hosted version on budget hosting that is most likely to end up as a forgotten site full of old plugins.
  • Yes. WordPress has a built-in REST API that returns content as JSON, and a separate front end can fetch it from there. That gives you a faster, less exposed front end, but the WordPress admin, PHP and every plugin still run on a server that needs updating, so most of the maintenance stays. It can work as a stepping stone for a large existing site, but for a new site a CMS built for headless is simpler.

Sources

  1. [1]Domännamn | Köp en domän idag · one.com
  2. [2]Usage Statistics and Market Share of WordPress, October 2026 · W3Techs, 29 Oct 2026
  3. [3]State of WordPress Security in 2026 · Patchstack, 25 Feb 2026
  4. [4]Supported Versions · The PHP Group
  5. [5]Description of core php.ini directives: expose_php · The PHP Group
  6. [6]Statistics · WordPress.org
  7. [7]Secure Custom Fields · WordPress.org, 12 Oct 2024
  8. [8]Pricing · Sanity
  9. [9]Site Moves and Migrations · Google Search Central, 20 Aug 2026
  10. [10]PHP 8 ChangeLog · The PHP Group, 21 Oct 2026
  11. [11]Usage Statistics and Market Share of PHP for Websites, November 2026 · W3Techs, 2 Nov 2026
  12. [12]Critical Vulnerabilities in PHP Require Immediate Patching · CISA, 21 Oct 2026
  13. [13]PHP2Shell puts dozens of UK government services out of service · The Register, 22 Oct 2026
Max Rosberg Somerlock
AuthorMax Rosberg SomerlockTechnical Lead
Contact

Got a project in mind?

Tell us briefly what you want to build, and we'll get back to you and take it from there.

Cookie settings

Choose which cookies we may use. Necessary ones keep the website working and can't be switched off. You can change your choice at any time.