How to Use WPScan: WordPress Vulnerability Scanning in Kali Linux
How to use WPScan in Kali Linux: install it, save your free API token, run your first WordPress vulnerability scan — cheat sheet, 15 FAQs.
How to Use WPScan: WordPress Vulnerability Scanning Tutorial
WPScan is a free, open-source black-box WordPress vulnerability scanner. Given
just a site's URL, it identifies the WordPress version, enumerates installed
themes and plugins, discovers usernames, and checks everything it finds against
the WPScan Vulnerability Database for known CVEs. It ships pre-installed on
Kali Linux, which makes it the standard first tool for auditing any WordPress
site — and WordPress powers a huge share of the web, so this is a skill every
web pentester uses constantly.
Only scan WordPress sites you own or have explicit written permission to
test. Running WPScan against a site without authorization is illegal in most
jurisdictions, even if you only run a "read-only" enumeration scan.
What Is WPScan?
WPScan is a command-line security scanner for WordPress. It identifies the WordPress version when possible, looks for recognizable plugins and themes, and checks detected versions against a database of known vulnerabilities. It can also report publicly visible usernames and exposed files so site owners can review what their installation reveals.
WPScan 4, released in May 2026, is the current major version. Run wpscan --version to see which version is installed on your machine. Refreshing the scanner's database does not upgrade the scanner itself.
WPScan is not WP-CLI. WP-CLI manages WordPress: it can update core, configure settings, and manage plugins from the command line. WPScan audits WordPress and reports what it finds; it does not apply the fixes. Every WPScan command in this guide starts with wpscan, not wp.
A remotely detected version is a clue, not an authoritative inventory. A site can reveal its core version while giving away very little about installed plugins or themes. Likewise, an exposed file can be worth reviewing even if it has no associated vulnerability record. WPScan checks for known vulnerabilities; it is not a malware scanner, cannot tell you whether a site has been compromised, and does not discover zero-days or audit custom code for new vulnerabilities.
Why You Need WPScan
You are auditing a WordPress site and need to find outdated versions,
vulnerable plugins, or misconfigurations — WPScan specializes in WordPress
security. It checks core versions, themes, plugins, user enumeration, and
exposed sensitive files against a continuously updated vulnerability
database. A generic web scanner will miss WordPress-specific issues; WPScan
knows exactly where WordPress hides version information, readme files, and
user data, and it maps each finding to a real vulnerability record.
Prerequisites
WPScan 4: What's New in 2026
| Change | What it means in practice |
|---|---|
New installs use ~/.config/wpscan/ | Store your configuration and API token there under the account that runs WPScan. |
Upgraded installs keep using ~/.wpscan/ | If you upgraded an existing installation, check the older location before creating a second configuration file. A token saved in the wrong directory can look like a missing token. |
| Mixed detection is the default | Mixed mode adds more targeted requests than passive mode. Set --detection-mode passive explicitly when that is the scope you agreed to. |
WPScan 4.2.0 added --max-response-size | The default is 16 MiB per response. The setting limits how much response data WPScan reads, not how many requests it sends. Clues beyond the cap may not be inspected. |
| WPScan 4 requires Ruby 3.3 or later | Run ruby -v in the same shell where you launch WPScan, especially if you manage more than one Ruby installation. |
If you manage WPScan with RubyGems, the install command is:
gem install wpscan
For a Homebrew-managed installation, use:
brew tap wpscanteam/tap && brew install wpscan
On Kali, stick with the package manager you already use for WPScan unless you intend to switch. Installing a gem alongside the Kali package can leave two wpscan executables on your path. After installing or upgrading, run wpscan --version again to check which one your shell actually launches.
Installation and API Token Setup
On Kali Linux, WPScan is already installed. Keep its vulnerability database
fresh before every assessment:
wpscan --update
On another system, install it with your package manager or RubyGems:
sudo apt install wpscan
# or
sudo gem install wpscan
Vulnerability data requires a free API token. Register at wpscan.com, copy
your token, and pass it on every scan with --api-token. Without a token,
WPScan still enumerates plugins, themes, and users — but it cannot tell you
whether any of them are actually vulnerable, which is the whole point of the
scan.
How to Use WPScan in 6 Steps
Use these examples only on a lab site you own or have explicit written permission to test. In these examples, https://example.com stands for a lab site you own or have explicit written permission to test.
```bash
wpscan --update
```
scan.yml in your active WPScan configuration directory. Add api_token under the existing cli_options key rather than replacing settings you already use.```yaml
cli_options:
api_token: 'YOUR_API_TOKEN'
```
Keep this file readable only by your account and out of shared repositories. See the WPScan 4 section below if you are unsure which directory your installation uses.
```bash
wpscan --url https://example.com --detection-mode passive
```
vp and vt to focus on detectable plugins and themes with known vulnerabilities. Compare the results with the installed inventory in the WordPress dashboard. Review user accounts in the dashboard separately; a list of publicly visible names is not an account inventory.```bash
wpscan --url https://example.com --detection-mode passive --enumerate vp,vt
```
Your First Scan: A Worked Example
Run a basic scan against a site you own, replacing the URL and token:
wpscan --url https://example.com --api-token YOUR_TOKEN
WPScan first fingerprints the site: it detects the WordPress version (from
readme.html, generator tags, and other markers), checks whether XML-RPC is
enabled, and lists interesting findings such as exposed readme files, debug
logs, or directory listings. Then it enumerates components and cross-checks
each one against the vulnerability database.
A typical result has three kinds of output to read carefully:
vulnerabilities for that exact version and the version that fixes them.
wp-config.php backup, an open uploads directory, or XML-RPC being enabled.
Not every finding is exploitable; verify each one before reporting it.
affected versions, and the fixed version. The fix is almost always "update
the plugin or theme" — say so in your report, with the version number.
Save results for your report instead of scrolling back through terminal
output:
wpscan --url https://example.com --api-token YOUR_TOKEN --output results.txt
wpscan --url https://example.com --api-token YOUR_TOKEN --format json --output results.json
Worked Example: Reading a Real WPScan Report
Illustrative output: This excerpt uses historical versions and simplified labels to show how to read three findings. It represents a lab instance at example.com that you own or have explicit written permission to test. The fixed versions shown are historical patch points, not recommendations for what to install today.
[+] URL: https://example.com/
[+] A. WordPress version 6.5.4 identified (outdated)
| Fixed in: 6.5.5 for the security issue shown on the 6.5 branch
[+] B. Essential Addons for Elementor
| Detected version: 5.7.1
| [!] Known vulnerability: privilege escalation
| CVE reference: CVE-2023-32243
| Affected versions: 5.4.0 through 5.7.1, inclusive
| Fixed in: 5.7.2
[+] C. Interesting finding: WordPress readme reachable without signing in
| Location: https://example.com/readme.html
A. Outdated WordPress core. The scanner believes core is at 6.5.4, which predates the 6.5.5 security release on that branch. Verify the installed version in the WordPress dashboard and use the official WordPress release notes to confirm the patch. If the dashboard shows a newer version than the scan does, check whether a cache is still serving old version clues before concluding the update failed. The fix is to update to a supported WordPress release that includes the patch, not to stop at 6.5.5 simply because that number appears in the report.
B. Vulnerable plugin. The detected version, 5.7.1, is inside the affected range for CVE-2023-32243. Verify the exact plugin name and installed version in the dashboard, then use the CVE identifier to check the advisory's affected range and first fixed release. Fix it by updating to a supported version that includes the 5.7.2 patch. If the site does not need the plugin, remove it instead. If the scan reports a vulnerable plugin but cannot determine its version, verify the version before marking the finding confirmed.
C. Interesting finding: exposed readme. The readme was reachable without signing in. That is an exposure to review, not a CVE or reliable proof of the current WordPress version. Verify that the response contains the actual readme: some sites return a successful HTTP status even for a generic error page. If the file does not need to be public, remove it or restrict access through the site's normal web-server configuration. There is no fixed version for this finding; the verification is that the content is no longer publicly reachable, including after the next core update.
A scan is only as useful as how well you read it. A confirmed vulnerability finding means a known weakness is present, not that anyone has exploited it.
Enumeration Options: What Each Code Means
--enumerate takes a comma-separated list of codes. The ones you will use
most:
# Enumerate vulnerable plugins only (fast, low noise)
wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate vp
# Enumerate vulnerable themes only
wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate vt
# Enumerate users (usernames for later password testing)
wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate u
# Enumerate config backups (exposed wp-config.php copies leak DB credentials)
wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate cb
# Everything commonly needed in one pass
wpscan --url https://example.com --api-token YOUR_TOKEN --enumerate vp,vt,u,cb,tt
| Code | Enumerates |
|---|---|
| vp | Vulnerable plugins |
| ap | All plugins (slower, noisier) |
| vt | Vulnerable themes |
| at | All themes |
| u | Usernames |
| cb | Config backups (wp-config.php~ and similar) |
| tt | TimThumb files |
Start with vp,vt,u on a first pass. Full enumeration (ap,at) sends many
more requests, takes much longer, and is more likely to get you rate-limited
or blocked — save it for when the quick pass finds nothing and you have a
reason to dig deeper.
How WPScan Enumerates Users
User enumeration works through the WordPress REST API, author archive pages
(/?author=1, /?author=2, ...), and login-page behavior. That is why
--enumerate u is so valuable: it hands you the exact usernames to test in
the password-attack phase, instead of guessing common names like admin.
Password Attacks with WPScan
Once you have usernames, test passwords against them with a wordlist. On Kali,
rockyou.txt is the standard list (you may need to decompress it first):
wpscan --url https://example.com --usernames admin --passwords /usr/share/wordlists/rockyou.txt
Test several discovered usernames at once by passing a usernames file, and
remember this phase is loud: it generates many login attempts, can lock
accounts out, and will show up in the target's logs. Only run it with explicit
permission, and prefer it against a lab target rather than a production site.
Authenticated Scans: WP-Auth and HTTP Auth
Use these examples only on a lab instance you own or have explicit written permission to test. The credentials below are placeholders, and example.com stands for the authorized lab host.
Use --wp-auth login:password when you need a reliable WordPress inventory. It queries the WordPress REST API at /wp-json/wp/v2/plugins and /wp-json/wp/v2/themes. The relevant REST permissions let WPScan read what is installed instead of inferring it from public pages. Use a dedicated lab credential with the permissions needed to read the inventory. If the account cannot read those routes, verify the inventory in the dashboard rather than changing production permissions for the scanner.
wpscan --url https://example.com --detection-mode passive --wp-auth 'lab-reviewer:EXAMPLE_PASSWORD'
Use --http-auth login:password when the web server puts an HTTP Basic authentication prompt in front of the site. A staging server may require these credentials before it serves any WordPress page. Passing that gate does not sign you into WordPress or grant access to its plugin inventory.
wpscan --url https://example.com --detection-mode passive --http-auth 'lab-gate:EXAMPLE_PASSWORD'
If a password contains $, single-quote the entire login:password pair so the shell treats it literally. If you use double quotes, escape each dollar sign as \$. Quoting prevents shell expansion; it does not hide a password from shell history or process listings. Use disposable lab credentials over HTTPS, and do not share command transcripts containing real credentials. Neither authentication option replaces the WPScan API token for vulnerability lookups.
Scanning Many Sites and Automating WPScan
Keep a targets.txt file with one lab or owned URL per line. Use it as a coverage checklist: before each manual scan, confirm the hostname, the owner's written authorization where needed, and the agreed testing window. Check where the site redirects before proceeding. Automate the handling of saved reports rather than turning a URL list into an unattended scan queue.
For the examples below, example.com is the lab site you own or have explicit written permission to test. Choose text for a report you plan to read, or JSON for a report another tool will process. Running both commands makes two separate scans.
wpscan --url https://example.com --detection-mode passive --output results.txt
wpscan --url https://example.com --detection-mode passive --format json --output results.json
Give each saved run a distinct filename so a rescan does not replace your original evidence. Once you have collected the JSON reports, run this Bash loop in the report directory to check that each file contains a readable JSON object. It requires jq and makes no network requests.
for report in ./*.json; do
[ -f "$report" ] || continue
if jq -e 'type == "object"' "$report" >/dev/null; then
printf 'Readable JSON: %s\n' "$report"
else
printf 'Review report file: %s\n' "$report" >&2
fi
done
A readable file is not necessarily a successful scan. For each site, record the scanner version, scan settings, and whether API lookups completed. After applying fixes, rescan the same authorized site and compare the specific components or exposures you changed, not just the total number of findings. Keep reports private: they can contain account names, file locations, and details about software that still needs patching.
Stealth, Speed, and Reliability Flags
# Rotate the user agent so requests look less like a scanner
wpscan --url https://example.com --api-token YOUR_TOKEN --random-user-agent
# Slow down between requests (milliseconds) to avoid rate limits
wpscan --url https://example.com --api-token YOUR_TOKEN --throttle 1000
# Follow redirects (useful when a site redirects http to https or www)
wpscan --url https://example.com --api-token YOUR_TOKEN --follow-redirection
# Control how aggressively WPScan fingerprints (passive, aggressive, mixed)
wpscan --url https://example.com --api-token YOUR_TOKEN --detection-mode aggressive
Passive detection only reads headers and HTML already returned; aggressive
detection sends extra probes to confirm versions. Mixed (the default) is the
right starting point for most assessments.
WPScan Commands Cheat Sheet
Every scan command in the first table is a manual example for an authorized lab instance of example.com that you own or have explicit written permission to test. Use the protected configuration file for a real API token; YOUR_TOKEN is a placeholder.
| Everyday task | Command |
|---|---|
| Run a first passive scan | wpscan --url https://example.com --detection-mode passive |
| Update the local database | wpscan --update |
| Check the installed version | wpscan --version |
| Save text output | wpscan --url https://example.com --detection-mode passive --output results.txt |
| Save JSON output | wpscan --url https://example.com --detection-mode passive --format json --output results.json |
| Supply a token explicitly | wpscan --url https://example.com --detection-mode passive --api-token YOUR_TOKEN |
The short codes below are values for --enumerate. Treat the results as what WPScan could detect, not everything installed on the server. Keep lab traffic attributable and do not use scanner settings to work around security controls.
| Enumeration code or flag | Meaning |
|---|---|
vp | Looks for detectable plugins with known vulnerabilities. |
ap | Looks for all plugins WPScan can detect, not just vulnerable ones. |
vt | Looks for detectable themes with known vulnerabilities. |
at | Looks for all themes WPScan can detect, not just vulnerable ones. |
u | Enumerates discoverable WordPress users; it is not a complete account inventory. |
cb | Checks for exposed WordPress configuration backups. |
tt | Checks for traces of the legacy TimThumb image script. |
--detection-mode passive | Relies on clues from ordinary responses and generally makes fewer targeted requests. |
--detection-mode mixed | Combines passive clues with more targeted checks; this is the WPScan 4 default. |
--detection-mode aggressive | Relies more heavily on direct checks and can generate more traffic. |
--throttle 1000 | Waits 1,000 milliseconds between requests to reduce load during an approved scan. |
--proxy http://127.0.0.1:8080 | Routes approved lab traffic through a local Burp listener for inspection. The loopback address is the proxy, not the scan target. |
--wp-auth | Supplies WordPress credentials for REST API inventory. |
--http-auth | Supplies credentials for HTTP Basic authentication in front of the site. |
--follow-redirection | Follows a redirect to a different host without prompting; confirm that destination is already in scope before using it. |
--ignore-main-redirect | Do not follow the main redirect. |
--max-response-size 16 | Limits the data read per response to 16 MiB on WPScan 4.2.0 or later. |
Troubleshooting WPScan Problems
| Problem | Likely cause | Fix |
|---|---|---|
| The WordPress version could not be detected | The page did not reveal a reliable version clue, or WPScan received a cached page, login prompt, or redirect instead of the expected site. | Confirm the authorized WordPress base URL and check what it serves. Verify the installed version in the dashboard. An unknown version does not mean WordPress is absent or current. |
| No plugins found | Public responses did not expose recognizable plugin assets, or a cache rewrote the clues WPScan uses. | Compare the result with the dashboard's Plugins screen. On an authorized lab site, use the authenticated inventory if you need to reconcile the two. |
| No users found | The public pages did not reveal usable account clues. | Check the Users screen with an authorized account. If the goal was to verify that accounts are not publicly visible, record what the passive check could see rather than treating it as a full account audit. |
| The request was blocked | A firewall or web application firewall (WAF) denied the traffic. | Stop and review the denial with the operator. Confirm the expected hostname and agree on a testing window or approved staging environment. Do not change scanner identity to get around the block. |
| SSL connect error | The HTTPS endpoint is unreachable, or the certificate is expired, untrusted, or issued for a different hostname. | Check that the URL uses https, is reachable from the scan host, and presents a valid certificate for that hostname with a trusted chain. Fix the TLS problem before retrying. |
| Rate limiting | The site limited requests, or WPScan's API quota was reached. | Identify which service returned the limit. Pause and respect any retry interval on the site; for an API quota, check your account and wait for the reset. Resume only within the agreed request rate. |
| API token errors | A token is missing, invalid, or saved under a different user's configuration directory. | Check which account is running WPScan and which configuration directory it uses. Verify or replace the token without printing it. Treat vulnerability data as missing until lookups succeed. |
| Ruby errors or database update failures | WPScan may be using an incompatible Ruby, or wpscan --update cannot access its local data or upstream update service. | Check ruby -v: WPScan 4 needs Ruby 3.3 or later. Check local permissions and connectivity. If you need to reinstall, use the same path you installed with, such as gem or apt, then retry the update. |
WPScan vs Wordfence vs Nuclei vs Nikto
These tools look at different layers. Choose based on the question you need to answer, not on which tool reports the most findings.
| Tool | What it is | Best for | WPScan's edge/limit |
|---|---|---|---|
| WPScan | A WordPress-specific, database-backed command-line scanner. | Checking detected core, plugin, and theme versions against known vulnerability records. | Detailed WordPress version and patch context, but not a firewall, malware scanner, or general server audit. |
| Wordfence | A WordPress plugin that provides a firewall and scanner from inside WordPress. | Ongoing site protection and internal file-integrity or malware checks. | WPScan provides a separate point-in-time view of what is visible from outside. It does not block traffic or inspect files from inside the installation. |
| Nuclei | A general template-based scanner with WordPress templates. | Running approved, repeatable checks across a mix of technologies. | WPScan offers a dedicated WordPress inventory and vulnerability workflow; Nuclei coverage depends on the templates selected. |
| Nikto | A general web-server scanner with some WordPress checks. | Reviewing server-level issues such as risky defaults or exposed files. | WPScan ties WordPress components to known affected and fixed versions. Nikto is broader at the web-server layer. |
Practice Safely
Never practice on a live site you do not own. The safe options are a local
WordPress install on your own machine or VM, or a lab environment built for
this purpose. Point WPScan at your lab, run the full vp,vt,u,cb,tt pass,
then deliberately install an outdated plugin and watch WPScan flag it — that
is how you learn to read real findings instead of just running commands.
Common Mistakes
data, so the scan looks clean when it is not.
still needs authorization.
(directory listing, exposed backups) before writing them up, and check the
fixed version WPScan reports.
vp,vt,u; fullplugin/theme enumeration is slow and noisy.
fill logs — lab first, permission always.
Best Practices
wpscan --update before an assessment.vp,vt,u,then deeper enumeration only if needed.
--random-user-agent and --throttle on any target with rate limiting.--output (and --format json for tooling) so findingsare reproducible for your report.
Nikto or Nuclei for broader web-server checks.
Keep Learning
Is WPScan Legal and Safe to Use?
Only scan sites you own or have explicit written permission to test. For someone else's site, get the allowed hostnames, checks, testing window, and stop conditions in writing. A site being publicly reachable does not make it an authorized target. If it redirects to an unapproved host, stop and confirm scope before continuing.
Enumeration is still an active test in the operational sense: even passive detection sends requests to the site. Practice in an isolated lab first and use the least probing settings that answer your question. Password attacks can lock accounts and trigger alerts. They are not part of this workflow; if you need to validate an account-lockout policy, use a designated test account in an isolated lab rather than a production account.
WPScan's free Researcher plan is for non-commercial use. If you use WPScan as part of a paid service, such as a client security assessment, you need a commercial license. A client's written permission to test and your license to use the tool are separate requirements. Check the current terms before offering the service. WPScan's own WordPress plugin is no longer actively supported for non-enterprise customers, so use the CLI for this workflow.
Summary
WPScan is the premier WordPress security scanner. Success requires an API
token, a permissioned target, and the right enumeration options: start with
vp,vt,u, read version and vulnerability findings against their fixed
versions, and only go deeper (full enumeration, password attacks) when the
assessment calls for it.
Knowledge Check
--enumerate cb check for?--wp-auth give WPScan access to that --http-auth alone does not?Answers: 1. The token enables vulnerability lookups; the local update refreshes detection metadata. 2. Fresh installs use ~/.config/wpscan/; upgraded installs can keep using ~/.wpscan/. 3. Passive relies on ordinary responses, mixed adds targeted checks, and aggressive relies more heavily on direct checks; mixed is the default. 4. Confirm the installed version and affected range against the dashboard and advisory, then verify that the installed update contains the fix or that the plugin was removed. 5. Exposed WordPress configuration backups. 6. The WordPress REST plugin and theme inventory, subject to the account's permissions. 7. Check the authorized base URL, what it returns, and the installed version in the dashboard. 8. WPScan audits; WP-CLI manages.
Frequently Asked Questions
Continue Learning
Nikto Commands: Complete Guide to Web Server Scanning in Kali Linux
Nikto commands cheat sheet: install Nikto, run your first web server scan, read the results, tune scans and save reports — with a worked example.
Tools · BeginnerHow to Use Dirb: Beginner's Guide to Directory Brute-Forcing in Kali Linux
Learn how to use Dirb in Kali Linux: run your first directory scan, pick the right wordlist, and read the results — with a worked example and cheat sheet.
Tools · IntermediateHow to Use Metasploit: Beginner's Guide to the Metasploit Framework in Kali Linux
Learn how to use Metasploit in Kali Linux: start msfconsole, search modules, run your first lab exploit, and master Meterpreter with a cheat sheet.
Tools · BeginnerHow to Use Netcat: Beginner's Guide to the nc Command in Kali Linux
How to use Netcat (nc) in Kali Linux: test ports, run a listener, grab banners, transfer files, and catch a reverse shell — worked example and cheat sheet.
Related Security Tools
WPScan
Learn how to use WPScan, the black-box WordPress vulnerability scanner: install it in Kali Linux, add a free API token, and scan a WordPress site to enumerate plugins, themes and users and match them against known vulnerabilities.
Web ApplicationBurp Suite
Burp Suite is the industry-standard web application security testing platform from PortSwigger, free as Community Edition on Kali Linux. Learn how to use Burp Suite: install it, route your browser through its proxy, intercept your first request, and test it with Repeater and Intruder.
Vulnerability AnalysisNikto
Learn how to use Nikto, an open-source web server scanner written in Perl and pre-installed on Kali Linux, to audit servers you own or have written permission to test. Its 6700+ checks for potentially dangerous files and programs, plus tests for outdated software and misconfigurations, highlight issues that need verification.
Web ApplicationDIRB
DIRB is a web content scanner that finds hidden directories, backup files, and other sensitive content on web servers by launching dictionary-based attacks against a target URL. This beginner tutorial shows how to use DIRB in Kali Linux: install it, run your first scan, read the output, switch wordlists, and hand verified findings to the next tool.