There are many security announcements for PHP CMS, how to tighten the attack surface of the site.
When PHP-based CMS announcements are piling up, the correct action of the site owner is not to follow up on each announcement one by one, but to take the opportunity to consolidate the attack surface round: one less executable entry, one less path that can be hit by an announcement; interfaces are not exposed by default, one less port for scanners to try; the high-risk capability domain is closed, even if credentials are leaked, a full-site accident will not occur.
Why the announcements are concentrated in the extension ecosystem
The share is the first reason: According to the statistics of W3Techs in October 2026, WordPress is used on 40.1% of websites, accounting for 58.6% in content management systems——the platform attacked by hackers as the main research field, the number of plug-in markets is counted by the ten thousands, and the audit level of third-party code is naturally lower than that of the core.The second reason is link combination: A single medium-risk vulnerability may not be fatal, but when combined with a chain of execution paths, it can cause major problems. The previously disclosed CVE-2026-64638 is an example of a login page pre-authentication XSS being upgraded to remote code execution, with CVSS 3.1 scoring 9.8, affecting versions 6.4 to 7.0.2, and the fix being in 7.0.3.The core program blocks the path, the plugin often opens a door on the side.
Three steps to consolidate the attack surface
First step, reduce entry. Directly delete plugins and themes that are not used instead of disabling them - disabled files are still on the disk, historical vulnerabilities can still be accessed; close the upload, export, and debugging pages on the front end if there is no business.The second step, receiving the interface. For external APIs, use JWT tokens or the like to authenticate and tighten session, escape input and output, so that SQL injection and XSS are handled at the interface layer, rather than relying on the source to behave properly.Step three, limit permissions. Backend accounts are minimized by role, people who can only read and not modify are not given modification, editors and administrators are divided into domains, and leaking a low-privileged account is not equivalent to the entire site being compromised.
The idea of defaulting capabilities to be closed
The more stable approach is to 'not install and not open', instead of 'install and then close'. AnQiCMS' approach to this type of design can be taken as a reference: controlling the exposed range to the outside world based on intent domains, backup, upgrade, multi-site and other full-site high-risk operation domains are turned off by default, and need to be explicitly opened and logged when in use; the program itself is a Go compiled product, and does not have an upload directory that can be parsed and executed by scripts, which is a classic surface. It is not about comparing which one is safer, but to be clear about one thing when choosing a system: which capabilities are turned off by default, and which need to be remembered to turn off - the part that is forgotten is the real risk list when announcements pile up.
Backup is the premise of rollback
The action of gathering itself may also be wrong: limit permissions to business deadlock, close interfaces to order interruption. Therefore, make a data backup (including static files) before each round of tightening, rollback according to the backup if there is a problem, rather than changing it online. Regular recovery exercises must also be done, and an unverified recovery point is equal to none.
Common questions
Question: With too many announcements to read, what category should be read at the minimum?Answer: Only pay attention to two types - the extension you are using, and the core announcements with the word 'in the wild exploitation'.
Question: Do you need to manage the automatic update when it is on?Answer: The core can be automated, check the change log before updating plugins, and batch automatic updates are a common source of accidents.
Question: Can we avoid this cycle by switching to a non-PHP stack?Answer: What is avoided is the script execution surface, the interface authentication and permission management cannot be avoided, and the three steps of consolidating the attack surface must be done on any stack.