December 4, 2026 by Henrik Karlström. Updated December 4, 2026
AI keeps finding holes in server software. A static website has nothing to patch
AI keeps finding flaws in PHP, NGINX and more, and patch windows are shrinking. A static site has no server code to exploit. What attack surface means, what static removes, and a checklist for agencies.
AI is finding serious flaws in server software faster than most teams can patch, and this autumn's news shows it: PHP, NGINX, even old RSA keys. A static website has no server-side code running on the live site and no database behind it, so there is far less to exploit and almost nothing of your own to patch. For static website security, "nothing to patch" is the defence that holds up as AI shrinks the time between a flaw and its exploitation. Accounts, forms and your host still need care, and we get to those further down.
AI keeps finding holes in server software
The pattern repeats in every layer of a server. AI tools now find flaws in widely used software, and whoever runs that software has to patch before attackers catch up. Three recent cases:
- The language runtime. In October, two critical flaws in PHP itself, nicknamed php2shell, let attackers run code on unpatched servers without logging in. AI tools helped find them, and governments across Europe took sites offline while they patched (BBC). The fix was a runtime update, not an update to the site's own software (Ostorlab).
- The web server. On 18 November F5 fixed ten flaws in NGINX, including a critical unauthenticated remote code execution bug in its HTTP/2 handling that had been in the code for over a decade. Several security firms found overlapping flaws with AI agents, and CSO Online lists PHP, Node, OpenSSH and Java in the same string of AI-found holes (CSO Online).
- The cryptography. On 6 November Google DeepMind said AI agents, working under human supervision, found two ways to cut the cost of attacking legacy 1024-bit RSA. Modern 2048-bit keys are not affected (SecurityWeek). Old assumptions are being tested by machines that don't get tired.
The lesson isn't "avoid one technology". Whichever layer breaks next, each layer you run on the server is one more to patch and one more to reach. A static site runs the fewest. Your host still keeps its web server and operating system current, which is the one duty left on the list, and it is one company's job rather than one per client site.
On 2 December the cryptography story got bigger. The NSA told operators of national security systems to "immediately accelerate" their move to post-quantum cryptography, after AI companies disclosed discoveries that affect some cryptography in use today (Breaking Defense). In a joint statement, the NSA, CISA and the White House cyber office said recent AI advances "do not present an immediate and widespread threat" to that cryptography. Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI and Oracle backed the guidance. The agencies have not said what was found (The Record).
A static site still runs on HTTPS, so this is no reason to relax. What changes is who does the work. On a managed static host the encryption is the host's job, so the move to post-quantum standards is one company's migration, not a key setup on every client's server. Ask your host when it plans to get there.
AI makes the patch window shorter
This week Reuters reported that Canada detected unauthorized activity on government networks by hackers apparently using AI-enabled tools, and that some public web pages may go offline during patching. The Canadian Cyber Centre said AI helps attackers find and use weaknesses faster, "giving organizations less time to respond" (Reuters). NCC Group's Matt Hull told the BBC that exploiting a flaw used to take weeks and now "can be days or hours" (BBC).
If you run 30 client sites on a server stack, your deadline for the next flaw like this is the attackers' timetable, not yours.
Static website security: what attack surface means
Attack surface is everything on your site that an outsider can talk to and that does work when they do. Compare what happens on a page visit.
On a dynamic site, the server starts code (PHP, Node or another runtime), the code asks a database for content, plugins add their own code, and an admin login sits on the same domain. Each of those is software someone has to update, and each can hold a flaw.
On a static site, the host finds a prepared HTML file and sends it. No code runs per request and no database sits behind the page. A request-handling flaw in a runtime, like php2shell, has nothing to land on, because no runtime on the live site handles your visitors' requests.
| What a visitor reaches | WordPress site | Static site |
|---|---|---|
| Code run per request | Runtime, theme, every plugin | None |
| Database | Yes | None |
| Public admin login | Yes | None |
| Patch duties | Runtime, core, plugins, themes | The host only |
One condition applies: the host must serve the files without running server code. CrowdStrike says every reachable PHP endpoint on an affected server is attack surface, static forms included. A static folder on an old PHP server is still on that server.
A website is a way in
A website is two things for an attacker: a door into the backend, and a stage in front of your visitors.
The door to the backend. In a WordPress campaign GreyNoise tracked this autumn, attackers exploited site flaws, planted a webshell, found database credentials in readable files and reached an internal SQL server. One government lost 18,566 records, plaintext passwords included (Cyber Security News). In October attackers breached the website of the UpdraftPlus vendor and took the keys its customers' sites trusted. They used them to install backdoors on customer sites, and Nethemba reports that fully patched sites were hit too (BleepingComputer). In both cases the site was only the way in. The database and other people's sites were the prize.
The stage in front of visitors. On 16 November malicious JavaScript reached visitors of at least 178 organizations, including the BBC, CNN and HSBC. It came through a third-party testing tool the sites had chosen to load. It skimmed cards, swapped crypto wallet addresses and served iPhone exploit kits, and the sites' own code and patches played no part (SecureWorld).
Static output removes the first path: there is no application server or database on the site to walk into. The second path stays open for any site that loads outside scripts, static or not. A static site with no third-party scripts has nothing for that attack to ride in on, and one with a chat widget and three trackers has four doors.
What static removes, and what is left to protect
Static output removes the engine, the database, the plugins and the public login. It also removes the path from a hacked site to the rest of the server, which is how one flaw becomes access to other business data on the same machine.
What remains is smaller and easier to list:
- Accounts. The editor login, the registrar and the account at the host (GitHub, Netlify, Cloudflare). Turn on two-factor authentication on all of them.
- Forms. Whatever receives submissions is a small service of its own. Know which one it is.
- Third-party scripts. Every chat widget or tag you add runs in your visitors' browsers, and a change at the vendor changes your page. Keep a short list, one owner, and none on payment pages.
- The host itself. Your files are safe only as far as the host keeps its own servers updated.
Far smaller attack surface is the honest claim. "Unhackable" would be a lie.
A checklist for an agency with 20 client sites
-
1List what runs on each site. Note the CMS, plugins, PHP version, database and who has admin access.
-
2Move the brochure sites to static. Most marketing sites need no server code at request time. Pages, a blog and a contact form don't need a PHP stack.
-
3Keep patching the ones that must stay dynamic. Shops and member areas still need updates, now within hours rather than weeks.
-
4Limit who can change production. Give clients an editor role instead of the keys, and keep a version history so a bad change, human or agent, can be rolled back.
-
5Lock the accounts. Two-factor authentication on the registrar, the host and the editor, for everyone.
Where Flipsite fits
Flipsite compiles a site to static HTML and CSS. The same files go to any publish target: GitHub Pages and Netlify
directly, a ZIP for any static host such as Cloudflare Pages, or a webhook to your own server or Flipsite hosting. The
pages you publish contain no PHP, no database and no login page. You can check it on flipsite.io itself: the response is
plain text/html, with no X-Powered-By header.
For the agent side, roles limit what an agent or a client may change, and every change is a version you can undo. If you use Claude or ChatGPT to maintain sites, that matters more as attackers start using AI too. The publishing options show where the files can go. For background, read the case for static websites, how Flipsite hosting works and where to host a static site. To see client editing without handing over the keys, read Claude Code client editing.
FAQ
Are static websites more secure than WordPress?
Usually yes, on attack surface. A static site has no server-side code, database or public login to exploit, while a WordPress site has all three plus plugins. Static sites still have accounts, forms and a host to protect, so the claim is "far smaller", not "immune".
Which recent server flaws does a static site avoid?
Flaws in the software that runs on a server, such as php2shell in PHP or the NGINX bugs fixed in November, hit sites that run that software. A static site served as plain files runs no application runtime of its own, so flaws in one have nothing to land on. Your host still patches its web server.
How do I check whether my site is static?
View the page source and the response headers. A static site returns the same HTML file to every visitor and usually has
no X-Powered-By: PHP header, but a header alone proves little, so ask your host what
runs on the server.
Is a static website secure?
It is far more secure against server-side attacks, because there is no code to run and no database to reach. It is not immune: accounts, forms, third-party scripts and the host still need care.
Does the NSA post-quantum warning affect my static website?
Like every website, it still uses HTTPS. The NSA has urged operators of national security systems to speed up their move to post-quantum cryptography, while the US agencies say recent AI advances are not an immediate, widespread threat to today's encryption. On a managed static host the encryption is the host's job, so ask when it plans to move. You have no server stack or certificates of your own to migrate.
Further reading
You built the client site with Claude Code. Now the client wants to edit it.
November 26, 2026 by Fredrik Rönnlund • 10m
How Flipsite hosting works, from Publish to nginx
November 23, 2026 by Fredrik Rönnlund • 8m
Where to host your static website: a practical guide
October 17, 2025 by Fredrik Rönnlund • 5m
The case for static websites over dynamic ones
October 5, 2024 by Henrik Karlström • 3m