October made that harder to put off. This month, AI made it much easier to fix.
What happened in October
On 21 October, the PHP project shipped emergency fixes for two critical flaws, CVE-2026-109618 and CVE-2026-109619, which researchers nicknamed PHP2Shell. PHP runs a huge share of the web, including WordPress, Drupal and Joomla. These flaws could let an attacker take control of a web server without logging in. The fixes went out in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
The UK's National Cyber Security Centre (NCSC) told organisations to find every PHP system they run, internet-facing ones first, and update straight away. If they couldn't update or apply PHP's temporary workarounds quickly, it said they should consider taking the system offline. Plenty did. Council websites in Edinburgh and Oxford and the Metropolitan Police's site were among those reported unavailable, and the cybersecurity minister told Parliament that 32 government services had been taken offline, largely as a precaution. The NCSC sent around 50,000 alerts to affected organisations.
For anyone on a supported version of PHP, this was an urgent but routine patch. For anyone on an old branch, it was something else. PHP 8.1 and earlier don't get official fixes, and CERT-EU's advice to those users was to contact their vendor or move to a supported version. US agency CISA went further: organisations stuck on PHP 8.1 or earlier, or unable to update immediately, should take those systems offline until they're patched or upgraded.
That's the uncomfortable bit. If your site runs on an old content management system that can't move to modern PHP, "just patch it" isn't available.
Why old sites stay old
Usually it comes down to money. Drupal 7 is a good example. It reached end of life in January 2025, and there's never been an in-place upgrade to modern Drupal. Moving off it, to any platform, has meant rebuilding: model every content type again, recreate the design template by template, write migration scripts, then check every page. That's weeks of developer time for a business to get back the site it already had.
So plenty of owners paid for extended support, or did nothing and hoped.
What changed: an agent did the rebuild
On 10 November, US web developer Justin Phelan of One Thing Web Development wrote up what happened when PHP2Shell forced his hand on several Drupal 7 sites running PHP 7.2 (which stopped getting security fixes in 2019). He pointed a Claude agent at the old codebase and database and asked it to rebuild each site in Statamic, the Laravel-based CMS. By his estimate, the agent did 99% of the work.
What's striking is what "the work" covered:
- It read the old site like a developer would: content types and fields, categories, menus, the listing pages, and the templates that rendered them.
- It rebuilt the structure: old content types became Statamic collections with matching fields, categories became taxonomies, and listing pages kept their filters, sorting and pagination.
- It moved the design across, tidier: same look, rebuilt on Tailwind CSS, with "much less code underneath".
- It migrated the content and kept the URLs: a custom Laravel command pulled every record from the old database, copied the uploaded files, and carried the old URL aliases over so existing links and search rankings kept working.
What he kept for himself was judgement: reviewing what the agent built, spot-checking migrated content against the old site, deciding what to retire, and handling the switch-over. In his words, that "takes hours, where the rebuild used to take weeks."
His conclusion is the one every business with an ageing site should hear: the question used to be "can we afford to migrate?" Now it's "where should this site live?"
Why the destination matters as much as the agent
An agent will happily move a site somewhere that recreates the same problems. So the platform you land on matters.
This is where Statamic is a particularly good fit for AI-assisted work, and the reasons are practical:
- Content is structured and readable. Statamic stores content as plain Markdown and YAML files by default, so an agent (and a person reviewing its work) can see exactly what changed. The whole site, content included, can sit in version control, with a full history.
- It's built on Laravel. That means a modern PHP release schedule and an active framework security team. Phelan is clear that Statamic sites needed the PHP2Shell patch too, like every PHP site. The difference is that on a supported version, the patch existed and applying it was routine.
- The ecosystem is building for agents on purpose. This month alone, the Statamic MCP addon reached its first stable 1.0 release (1 November) and a security-focused 1.1.0 (4 November), letting AI tools read and write a site's content as a named user with a set role. The Agentic starter kit's 1.3.0 release (5 November) added a guide for bringing its guardrails to existing sites: validation, blueprint references, and a reviewed publishing flow where developers still approve what can be edited and published.
In other words, the platform is designed for an agent to do the heavy lifting while a person keeps hold of the decisions. That's the right split.
What it still costs (honestly)
Cheaper isn't free, and anyone who tells you otherwise is selling something.
- Someone qualified has to review the agent's work. As Phelan puts it, an agent can faithfully migrate a broken thing, and a person needs to catch that.
- Content decisions belong to you. What to keep, what to rewrite, what to quietly retire.
- Redirects, forms and integrations need checking. The bits that connect your site to your CRM, email platform or payment provider are where migrations usually go wrong.
- Hosting and maintenance don't disappear. A new site still needs to be kept up to date. The difference is that "up to date" is now possible.
A quick check for your own site
If you're not sure where you stand, ask whoever looks after your website four questions:
- Which PHP version is the live site on, and is that branch still supported?
- Was it patched for PHP2Shell, and when?
- Which CMS version are we on, and when does it reach end of life?
- If we had to move it, what would a rebuild involve now, with AI doing the groundwork?
If the answers are vague, that's your answer.
The optimistic bit
For years, old websites have been a sort of quiet tax: too risky to keep, too expensive to replace. That trade-off has flipped. With AI doing most of the rebuild and people handling the judgement, keeping a site on an unsupported stack has become the expensive option. The businesses that move now get a safer site, a cleaner codebase, and a platform that's ready for the agents that are coming to help run it.
Why this matters for Clarity Growth
We build, migrate and look after websites for UK businesses, and Statamic is one of the platforms we work with most because it gets on so well with AI. We're increasingly using agents to do the heavy lifting on migrations (inventorying old sites, rebuilding structure, moving content, preserving URLs), while our team owns the parts that need judgement: content decisions, redirects, integrations with the rest of your systems, security and the go-live. If you've got an ageing site you've been putting off, it's worth asking again what moving it would actually take.
Sources
- NCSC, "Critical security issue affecting PHP", 21 October 2026: https://www.ncsc.gov.uk/news/critical-security-issue-affecting-php
- PHP, "PHP 8.5.12 Released" (security release announcement): https://news-web.php.net/php.announce/513
- CERT-EU, "Critical Vulnerabilities in PHP" (Security Advisory 2026-018): https://www.cert.europa.eu/publications/security-advisories/2026-018
- CISA, "Critical Vulnerabilities in PHP Require Immediate Patching", 21 October 2026: https://www.cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-require-immediate-patching
- Insurance Business UK, "UK councils and Met Police among sites pulled offline after NCSC alert": https://www.insurancebusinessmag.com/uk/news/cyber/uk-councils-and-met-police-among-sites-pulled-offline-after-ncsc-alert-594424.aspx
- The Guardian, "Websites across world hit by millions of attempts to exploit PHP code flaw", 22 October 2026: https://www.theguardian.com/technology/2026/oct/22/websites-across-world-hit-by-millions-of-attempts-to-exploit-php-code-flaw
- One Thing Web Development (Justin Phelan), "PHP2Shell Forced My Hand on Drupal 7. An AI Agent Did the Rest.", 10 November 2026: https://www.onethingweb.com/blog/ai-cms-migration-drupal-7-wordpress-to-statamic
- Statamic, Statamic MCP addon release notes (1.0.0, 1 Nov 2026; 1.1.0, 4 Nov 2026): https://statamic.com/addons/daniel/statamic-mcp/release-notes
- Statamic, Agentic starter kit release notes (1.3.0, 5 Nov 2026): https://statamic.com/starter-kits/sander/agentic/release-notes