By Nithu | Software Engineer & Security Researcher

Introduction: Why Are WordPress Websites Still Getting Hacked?
WordPress powers millions of websites worldwide, ranging from personal blogs and business websites to large e-commerce platforms.
WordPress sites remain attractive targets for cyber criminals even with continuing security improvements.
But why?
WordPress is not insecure by itself. Weak passwords? Or is the real problem lurking in third-party plugins and themes?
As a software engineer and security researcher, I wanted to look at a more specific question:
What is the biggest security threat for a WordPress website? How attackers exploit?
I analysed publicly available WordPress vulnerability disclosures, exploit statistics, and security research reports, including Patchstack’s State of WordPress Security in 2026 report, to explore this question.
An important distinction emerged:
The vulnerability category reported most frequently is not necessarily the one attackers exploit most aggressively.
Understanding this difference is essential for improving WordPress security.
1. The Biggest Vulnerability Surface: WordPress Plugins
One of the most important findings comes from Patchstack's 2026 security report, which analyzes vulnerabilities discovered during 2025.
According to the report:
| Security finding | Reported result |
|---|---|
| New WordPress ecosystem vulnerabilities in 2025 | 11,334 |
| Increase compared with 2024 | 42% |
| Vulnerabilities found in plugins | 91% |
| Vulnerabilities without a developer fix at disclosure | 46% |
These findings highlight an important issue.
WordPress Core is not always the main source for publicly disclosed security vulnerabilities. Instead, a large part of the known vulnerability surface is located in the third-party software installed on WordPress websites.
However, the 91% figure represents the distribution of reported vulnerabilities, not the percentage of successful website compromises caused by plugins.
That distinction matters.
Why Are Plugins Attractive Targets?
WordPress Core is not always the main source for publicly disclosed security vulnerabilities.
Every additional component can introduce security weaknesses.
Common examples include:
- Improper authorization checks.
- Insecure file-upload functionality.
- Unvalidated user input.
- SQL injection vulnerabilities.
- Cross-site scripting (XSS).
- Authentication bypass.
- Privilege escalation.
- Vulnerable dependencies.
A single vulnerable plugin can potentially expose an otherwise well-maintained WordPress website to attack.
The problem is not simply the number of plugins installed. It is the security quality, maintenance status, privileges, and exposure of those plugins.
2. My Key Finding: Most Reported Does Not Mean Most Exploited
This is one of the most interesting conclusions from my analysis of the available research.
Patchstack's 2025 vulnerability statistics identify Cross-Site Scripting as the most frequently reported vulnerability category.
Its published database shows:
| Vulnerability category | Share of reported vulnerabilities |
|---|---|
| Cross-Site Scripting (XSS) | 40.68% |
| Broken Access Control | 15.15% |
| Cross-Site Request Forgery (CSRF) | 12.93% |
| SQL Injection | 5.75% |
At first glance, XSS appears to be the largest security concern.
However, when examining real-world exploitation attempts blocked by Patchstack's RapidMitigate protection system, the picture changes.
Broken Access Control was the most exploited vulnerability category in Patchstack's 2025 blocked-attack dataset, according to its 2026 report.
This is particularly significant because Broken Access Control vulnerabilities can allow attackers to perform actions beyond their intended permissions.
What Is Broken Access Control?
Broken Access Control occurs when an application fails to enforce appropriate restrictions on what a user can access or modify.
For example, imagine a WordPress plugin that allows registered users to update their profiles.
A properly secured system should ensure that users can modify only the information they are authorized to change.
However, an insecure implementation might allow a low-privileged user to perform administrative actions or modify another user's information.
Depending on the vulnerability, attackers might be able to:
- Access restricted information.
- Modify protected website settings.
- Escalate their privileges.
- Perform administrator-level operations.
- Manipulate website content.
- Take control of sensitive application functionality.
These weaknesses are particularly dangerous because malicious requests may resemble legitimate application traffic.
Traditional firewall rules are not always able to distinguish authorized activity from an authorization failure inside the application.
A Secure WordPress Development Example
WordPress provides functions that developers can use to enforce authorization.
For example, when creating a custom REST API endpoint:
add_action('rest_api_init', function () { register_rest_route('example/v1', '/admin-status', [ 'methods' => 'GET', 'permission_callback' => function () { return current_user_can('manage_options'); }, 'callback' => function () { return rest_ensure_response([ 'status' => 'authorized' ]); } ]); }); In this example, WordPress verifies whether the authenticated user has the required capability before allowing the endpoint callback to execute.
Developers should also remember that WordPress nonces provide protection against certain request-forgery attacks; they are not a replacement for authorization checks.
Source: WordPress Developer Documentation — Adding Custom REST API Endpoints.
Security principle: Never assume that a user is authorized merely because the request comes from a logged-in session.
3. How WordPress Websites Are Commonly Attacked
Understanding the attack process helps explain why some security weaknesses become particularly dangerous.
A typical automated attack campaign may involve several stages.
Stage 1: Identifying Exposed Websites
Attackers use automated systems to identify websites running WordPress and potentially vulnerable software components.
These systems may examine publicly observable characteristics, known endpoints, exposed metadata, and recognizable software behavior.
Stage 2: Finding Known Vulnerabilities
Attackers compare potentially affected installations against publicly disclosed vulnerabilities.
They may focus on older plugin versions, abandoned extensions, or vulnerabilities for which fixes are not yet available.
A vulnerable website can remain exposed even when WordPress Core itself is fully updated.
Stage 3: Exploiting the Weakness
Depending on the vulnerability, an attacker may attempt to:
- Bypass authorization.
- Abuse insecure upload functionality.
- Access sensitive data.
- Escalate privileges.
- Execute unauthorized application operations.
The outcome depends on the vulnerability and the affected website's configuration.
Not every vulnerability results in complete website takeover.
Stage 4: Establishing Persistent Access
After a successful compromise, attackers may try to maintain access through malicious code, unauthorized accounts, or modified application components.
This is one reason some WordPress infections return after an administrator removes an obvious malicious file.
Stage 5: Monetizing the Compromise
Attackers may use compromised websites for:
- SEO spam.
- Malicious redirects.
- Phishing.
- Fraudulent content.
- Additional malware distribution.
- Unauthorized data access.
The visible symptoms often appear long after the initial compromise.
4. Why Attack Speed Has Become a Major Security Problem
Another concerning finding involves the time between vulnerability disclosure and exploitation.
Patchstack's 2026 report found that approximately half of the high-impact vulnerabilities in its analyzed dataset experienced observed exploitation within 24 hours.
For a prioritized subset covering approximately 95% of observed exploitation activity, the activity-weighted median time to first exploitation was just five hours.
This does not mean every WordPress vulnerability is exploited within five hours.
It means that heavily targeted vulnerabilities can attract exploitation attempts very quickly after disclosure.
Why This Matters
Imagine a critical plugin vulnerability becomes public.
The plugin developer may need time to release a security update.
Website administrators may then need additional time to discover, test, and install that update.
Meanwhile, automated exploitation attempts may already be occurring.
This creates a dangerous exposure window.
My conclusion is that reactive security maintenance alone is insufficient for high-risk WordPress environments.
Website administrators need vulnerability intelligence, rapid mitigation capabilities, and continuous monitoring rather than relying exclusively on occasional updates.
5. Why Malware Sometimes Returns After Cleanup
One of the most frustrating situations for website owners is recurring malware.
A compromised website is cleaned, but malicious redirects or suspicious files reappear.
Why does this happen?
Removing a detected malicious file does not necessarily remove the attacker's original entry point or every persistence mechanism.
Research from Monarx, included in Patchstack's 2026 report, describes increasingly complex malware behavior involving modified legitimate files, persistent uploader scripts, selective payload delivery, and reinfection mechanisms.
The research also identifies SEO spam and redirect campaigns that can behave differently depending on the visitor.
The Real Problem
Malware removal and vulnerability remediation are separate security activities.
A complete recovery process should investigate:
- How the initial compromise occurred.
- Whether vulnerable components remain installed.
- Whether unauthorized accounts or credentials exist.
- Whether malicious code has modified legitimate files.
- Whether scheduled tasks or other persistence mechanisms remain.
- Whether the attacker accessed sensitive information.
- Whether the website can be restored from a verified clean state.
Deleting a suspicious file is not the same as restoring the security of the entire application.
6. What About Weak Passwords and Login Attacks?
Plugin vulnerabilities are important, but they are not the only way attackers compromise WordPress websites.
Credential-based attacks remain a serious concern.
Examples include password reuse, phishing, credential stuffing, and compromised administrator devices.
An attacker who obtains valid administrator credentials may not need to exploit a software vulnerability at all.
This creates two different security problems:
Software exploitation: An attacker abuses a vulnerability in application code.
Account compromise: An attacker gains access through stolen or otherwise compromised credentials.
Both require appropriate controls.
Strong authentication, multifactor authentication, privileged-access reviews, and secure account recovery procedures should complement software vulnerability management.
7. My Recommended WordPress Security Fix Strategy for 2026
Based on the research reviewed, I would prioritize a layered security approach.
1. Continuous Plugin Vulnerability Monitoring
Maintain an accurate inventory of all installed plugins and themes.
Monitor security advisories and identify affected versions.
Remove abandoned or unnecessary components.
2. Strong Authorization Controls
Developers should review sensitive WordPress functionality, particularly custom REST API routes, AJAX handlers, and administrative operations.
Authorization must be enforced on the server.
3. Rapid Vulnerability Mitigation
Apply available security patches promptly.
When a patch is unavailable, consider disabling affected functionality or implementing targeted mitigations appropriate to the vulnerability.
A Web Application Firewall can provide an additional defensive layer, but it should not replace secure application code.
4. Secure Authentication
Use strong, unique credentials and phishing-resistant authentication methods where supported.
Enforce multifactor authentication for privileged accounts.
Review unused administrator accounts and third-party access.
5. Advanced Malware Detection
Monitor file integrity, unexpected modifications, suspicious accounts, and unusual application behavior.
Investigate recurring infections rather than repeatedly deleting visible malware.
6. Tested Backup and Recovery Procedures
Maintain protected backups outside the website's immediately writable environment.
Regularly test restoration procedures.
A backup is valuable only when it can be restored reliably and does not reintroduce the compromise.
These recommendations align with the general security principles described in the official WordPress Hardening Guide.
8. Final Research Findings
After reviewing the available WordPress vulnerability and exploitation data, I identified three important lessons.
Finding 1: Plugins represent the largest source of publicly disclosed WordPress ecosystem vulnerabilities.
Patchstack's 2026 report attributes 91% of the vulnerabilities identified in 2025 to plugins.
Finding 2: Vulnerability frequency does not equal exploitation frequency.
Although XSS was the most frequently reported vulnerability category, Broken Access Control dominated Patchstack's observed blocked exploitation activity.
This demonstrates why security priorities should consider real-world exploitation evidence rather than vulnerability counts alone.
Finding 3: The time available to respond to serious vulnerabilities can be extremely short.
For heavily targeted vulnerabilities, observed exploitation may begin within hours of public disclosure.
These findings suggest that WordPress security should move beyond a simple checklist of updates, passwords, and periodic malware scans.
Modern WordPress security requires an understanding of the entire application attack surface.
Conclusion
So, what is the biggest risk of a WordPress website getting hacked?
There is no single vulnerability responsible for every compromise.
However, the evidence reviewed here highlights two connected areas of concern:
Third-party plugin vulnerabilities represent the largest share of reported WordPress vulnerabilities, while Broken Access Control deserves particular attention because of its prominence in observed exploitation attempts.
Weak authentication, delayed patching, and persistent malware can further increase the damage associated with a compromise.
As a software engineer and security researcher, I believe effective WordPress security requires more than installing a security plugin.
It requires continuous vulnerability monitoring, secure development practices, strong access controls, timely mitigation, and a reliable incident-response process.
Security should be treated as an ongoing engineering responsibility, not a one-time configuration task.
Research Methodology and References
This article is an independent technical analysis of publicly available security research. The statistics are attributed to their original publishers and do not represent a new primary vulnerability-testing dataset.
- Patchstack — State of WordPress Security in 2026
- Patchstack — WordPress Vulnerability Statistics, 2025
- Wordfence — 2024 Annual WordPress Security Report
- WordPress Developer Handbook — Hardening WordPress
- WordPress Developer Handbook — Security Nonces
- WordPress Developer Handbook — Adding Custom REST API Endpoints
About the Author
Nithu
Software Engineer | Cybersecurity Specialist | Security Researcher
I specialize in web application security, WordPress security assessments, malware analysis and removal, vulnerability identification, and application security hardening.
My technical interests include understanding how security vulnerabilities emerge, how attackers exploit weaknesses in web applications, and how developers can build more resilient systems.

