WORDPRESS SECURITY

Why WordPress Sites Get Hacked (and How to Keep Yours Safe)

Weak passwords, risky plugins, a security plugin nobody set up, and no backup to fall back on. Here is how attackers really get in, and the simple habits that keep them out.

THE SHORT ANSWER

It’s Almost Never WordPress Itself

If your WordPress site got hacked, it is natural to blame WordPress. The data says otherwise. WordPress core is one of the most heavily reviewed pieces of software on the web. The weak spots are almost always the things added on top of it, and the way the site is run day to day.

Look at the numbers. In its State of WordPress Security in 2026 report, Patchstack counted 11,334 new vulnerabilities in the WordPress ecosystem during 2025, a 42% jump over the year before. Ninety-one percent of them were in plugins. WordPress core had just six, all low priority.

Two more figures from that report should change how you think about updates. Forty-six percent of those vulnerabilities had no fix available when they were made public. And for the most heavily targeted ones, the typical time from disclosure to mass attacks was about five hours. Bots are not waiting for you to get around to it.

Hands typing on a laptop showing cybersecurity graphics while checking WordPress plugins for vulnerabilities
700,000+

WordPress sites were running the vulnerable File Manager plugin when attackers started exploiting it in 2020.

THE PLUGIN THAT HANDS OVER THE KEYS

Why File Manager Plugins Are a Backdoor Waiting to Happen

A file manager plugin puts a full file browser inside your WordPress dashboard. You can upload, edit, and delete any file on the server without logging into your hosting account. That convenience is exactly the problem. Anything that can write files to your server is a door, and if that door has a flaw, an attacker can walk straight through it.

That is what happened with the popular WP File Manager plugin. Versions before 6.9 let anyone on the internet, without logging in, upload and run their own code on the site. Wordfence reported the flaw was being exploited as a zero-day while roughly 700,000 sites had the plugin installed, and blocked over 450,000 exploit attempts in the first days. The U.S. Cybersecurity and Infrastructure Security Agency later added it to its Known Exploited Vulnerabilities catalog.

Even a fully patched file manager is a risk. If anyone steals an admin password, the plugin gives them a ready-made tool to plant backdoors anywhere on the server. Our advice is simple: if you need to move files, use your host’s file manager or SFTP, then delete the plugin when you are done. Do not leave it installed “just in case.”

THE OTHER WAYS IN

Six More Gaps Attackers Count On

Weak or Reused Passwords

Bots try leaked email and password combinations against wp-login.php all day long. If your password has been used anywhere else, assume it is already on one of their lists.

Outdated Plugins and Themes

Plenty of hacked sites were running a plugin that already had a fix sitting in the update queue while the owner meant to get to it. Turn on automatic updates for plugins you trust, and check the rest weekly.

Abandoned Plugins

A plugin that has not been updated in a year or more is not getting security fixes either. If the developer has walked away, so should you. Find a maintained replacement.

Nulled (Pirated) Plugins

A “free” copy of a premium plugin from a download site is a classic way malware gets installed. Wordfence warns that nulled plugins and themes often contain backdoors and other malware. You install the hacker yourself.

Too Many Admin Accounts

Every old employee, former developer, and test account with full admin rights is another password that can be stolen. Give people the lowest role that lets them do their job.

A Security Plugin Nobody Set Up

Installing Wordfence and walking away is not protection. Without the firewall turned on, login limits set, and alerts going to an inbox someone reads, it is a logo on the dashboard.

TWO-FACTOR AUTHENTICATION

Yes, Two-Factor Is a Pain. A Hacked Site Is Worse.

Nobody loves pulling out their phone every time they log in. But look at what is hitting your login page. In its 2020 threat report, Wordfence said it blocked more than 90 billion malicious login attempts in a single year, and its number one takeaway was to use multi-factor authentication.

Two-factor authentication means a stolen password is not enough. The attacker also needs the code on your phone, and they do not have your phone. It takes about two minutes to set up, and Wordfence includes it in the free version.

Turn it on for every administrator account at a minimum. The few seconds it adds to your login are nothing compared to days of cleanup, a Google warning on your business name, and the calls you lose while your site is down.

Hand unlocking a smartphone to approve a WordPress two-factor authentication login
SECURITY PLUGINS

Installed Is Not the Same as Configured

A good security plugin is one of the best free tools WordPress has. Here is what a properly set up one actually looks like:

That last one comes straight from the WordPress hardening guide, which also recommends two-step authentication and regular backups. None of this costs anything. It just has to be done.

BACKUPS

A Backup Is the Cheapest Insurance You Will Ever Buy

When a site gets hacked, a clean backup is the difference between a bad afternoon and a bad month. The WordPress hardening guide tells you to back up regularly, including your database, and there are good free tools that make it easy.

UpdraftPlus is our go-to for routine backups. The free version runs on a schedule, anywhere from every few hours to monthly, and sends copies to Google Drive, Dropbox, Amazon S3, and other remote storage. Set it once and it keeps working.

All-in-One WP Migration packs your whole site into a single file you can download, which makes it handy for a full copy before a big change or a move to a new host. Scheduled backups, cloud storage, and restoring larger sites are paid add-ons, so treat the free version as a manual snapshot tool.

Whichever you use, keep copies off your server. A backup sitting on the same hosting account as the hacked site can be infected or deleted along with it. And keep several weeks of history, because a hack can sit quietly for weeks before anyone notices.

Backup storage drive holding offsite WordPress website backups
DO THIS TODAY

A 10-Minute Security Check You Can Do Yourself

QUESTIONS

WordPress Security FAQ

No. WordPress core had only six reported vulnerabilities in 2025, all low priority, according to Patchstack. The large majority of problems come from plugins, themes, weak passwords, and sites that are not kept up to date.

The 2020 flaw was fixed in version 6.9, but any plugin that can upload and edit files on your server is a serious risk if an admin login is ever stolen. Use your host’s file manager or SFTP instead, and delete file manager plugins when you are not using them.

Yes. Bots attack login pages on every kind of site, not just big ones. Two-factor authentication stops a stolen password from being enough to get in, and it is free in Wordfence.

At least weekly for a site that rarely changes, and daily for a site you update often. UpdraftPlus can do this automatically for free and send the copies to Google Drive or Dropbox.

They do different jobs. UpdraftPlus is better for scheduled, automatic backups stored off your server. All-in-One WP Migration is handy for a full manual copy or moving a site, but its free version does not schedule backups.

Do not just delete the spam pages. There is almost always a hidden backdoor that lets the attacker back in. Back up the site as it is, then have the whole site cleaned, including files, the database, and user accounts, and change every password.

Already Hacked? Let’s Get Your Site Back.

If your site is already showing spam, redirects, or a Google warning, our hacked WordPress site repair service removes the malware and backdoors, locks the site down, and gives you a written report of everything we fixed. Building something new? Our Houston web design service builds security in from day one.