Is WordPress secure?
Core WordPress is actively maintained and reasonably secure. Almost every real compromise comes from something added on top of it.
Yes, core WordPress is reasonably secure — it is actively maintained, security issues found in it are generally patched quickly, and it powers a large enough share of the web that it receives constant scrutiny from security researchers. Most real-world WordPress compromises have very little to do with a flaw in WordPress core itself.
Where the actual risk lives
Almost every hacked WordPress site traces back to one of a small number of causes, and none of them is "WordPress is insecure by design":
- Outdated plugins and themes. Third-party code varies enormously in quality, and a vulnerability in a single unmaintained plugin is by far the most common way sites are compromised — not a flaw in WordPress itself.
- Weak or reused passwords. An account secured with a common or reused password is vulnerable regardless of how secure the software behind it is.
- Delayed updates. Security fixes are only protective once installed. A known, publicly disclosed vulnerability in an unpatched site is an open door, and automated scans specifically look for exactly this.
- No login protection. WordPress does not limit failed login attempts by default, which makes automated password-guessing possible unless something is added to stop it.
Nearly every compromise is something added to WordPress, or something left unmaintained, rather than a weakness in the core software. This is genuinely good news, because it means the risk is largely within your control.
What actually keeps a WordPress site secure
- Keeping core, themes and plugins updated, ideally with minor updates applied automatically.
- Removing plugins and themes you are not actively using rather than leaving them deactivated.
- Unique, generated passwords on every account with admin access, plus two-factor authentication.
- A limit on failed login attempts, since WordPress does not include one by default.
- Backups taken regularly and stored somewhere other than the hosting account itself, so recovery is possible even in a worst case.
None of this is complicated, and together it addresses the actual sources of risk rather than an imagined weakness in WordPress itself. See securing a WordPress site for the full walkthrough, and limiting WordPress login attempts for the specific gap most default installs leave open. If a site has already been compromised, cleaning a hacked WordPress site covers what to do next.
Related reading
Updates, strong unique logins, two-factor authentication, a minimal plugin list, and backups that actually restore — in that order of importance.
How to limit WordPress login attemptsWordPress does not limit failed logins by default. Here is how to add a lockout, and what to pair it with for it to actually help.
How to clean a hacked WordPress siteIsolate the site, find every piece of the infection, remove it, close how it got in, then confirm it is actually gone.
A monthly WordPress maintenance checklistThe routine checks that keep a WordPress site from quietly accumulating problems, done monthly rather than only when something breaks.