WordPress plugin & vulnerability detector — CLI alternative to detectwpplugin.com
stack · plugins · themes · CVEs · domain
A read-only WordPress security scanner that answers the question every pentester asks first: "What's on this WordPress site, and what's vulnerable?"
Point it at a domain you're authorized to test, and it returns:
- CMS version — detected via 5 independent fingerprinting methods
- Plugins — discovered through passive HTML parsing, REST API namespaces, and optional aggressive directory probing
- Themes — with parent/child relationships pulled from WordPress.org
- Tech stack — hosting, CDN, page builders, analytics, JS libraries (via Wappalyzer's 1,400+ fingerprints)
- CVEs — matched against the installed version only, not the full historical list
- Domain intel — registrar, creation date, nameservers
- Attack surface — XML-RPC state, REST API namespaces, login panel exposure
Output is a colorized CLI table, a professional dark-themed HTML report, and a machine-readable JSON file.
WP-DETECT is a scanner, not an exploitation tool:
- ❌ Does not exploit any CVE
- ❌ Does not brute-force credentials
- ❌ Does not bypass authentication
- ❌ Does not modify target sites
- ❌ Does not write to any database
It sits in the same category as WPScan, Nuclei detection templates, and detectwpplugin.com — read-only reconnaissance, not attack.
- Multi-source version detection — meta generator, RSS feed,
readme.html, asset?ver=params, REST API fingerprint - Confidence scoring — "high" when ≥2 sources agree
- False positive filtering — recognizes WordPress core namespaces (
wp,oembed,batch, etc.) and excludes them from plugin results
- Passive mode — parses HTML from
/,/wp-login.php,/feed/,/contact/,/blog/, and more - REST API mode — extracts plugin slugs from REST namespace names (
contact-form-7/v1→contact-form-7) - Aggressive mode — probes
/wp-content/plugins/<slug>/readme.txtfor each candidate - Hybrid mode (default) — combines all three for maximum coverage
- Slug aliasing — correctly maps
rankmath→seo-by-rank-math,litespeed→litespeed-cache,joinchat→creame-whatsapp-me - Deduplication — merges duplicate discoveries into one clean row
- Version-filtered CVEs — only shows CVEs that actually affect the installed version
- Historical CVEs separated — when version can't be detected, all historical CVEs are shown in a separate "informational" table, clearly labelled as "not confirmed"
- Real CVSS scores — extracted from
impact.cvss3.scorein the API response - Severity chips — CRITICAL / HIGH / MEDIUM / LOW with color coding
- Fixed-in version — shows the release that patches each CVE
- Internal asset filtering — if a detected version is a full major ahead of the WordPress.org latest (e.g.
5.48.0vs4.3.6), the tool flags it as"internal asset 5.48.0 (WP.org latest: 4.3.6)"instead of showing a wrong number - Update tracking — shows
installed → latestwith an arrow when an update is available
- Timestamped logs —
[22:53:45] [+] WordPress 7.1.4 detected (7.1s) - Live spinners — animated
dots12spinner during each phase - Per-phase timing — every step shows its duration
- Parallel fetching — 8 pages fetched concurrently, 10 parallel workers for enrichment (typically <30s for a full scan, <3s cached)
- Colorized CLI tables — Rich-rendered, terminal-aware
- Dark HTML report — self-contained, WordPress-teal themed, ready to hand to a client
- JSON export — structured data for CI/CD integration
- Scope enforcement — refuses to scan domains not listed in
scope.txt - Wildcard support —
*.example.comin scope file matches all subdomains - Rate-limited — API requests use a 2-hour cache (
~/.wpdetect/cache/)
# 1. Clone
git clone https://github.com/Unknownx007/wp-detect.git
cd wp-detect
# 2. Install
python3 -m venv venv
source venv/bin/activate # Linux / macOS
# venv\Scripts\activate # Windows
pip install -r requirements.txt
# 3. Authorize your target
echo "example.com" > scope.txt
# 4. Scan
python3 run.py scan https://example.com --output scan.json --html report.html
# 5. Open the HTML report
xdg-open report.html # Linux
open report.html # macOS
start report.html # Windows[22:53:45] [*] Target : https://example.com
[22:53:45] [*] Scope : example.com — VERIFIED
[22:53:45] [*] Mode : hybrid · Workers: 10
──────────────────────────────────────────────────────────────────────────────
[22:53:45] [1/6] ▸ Detecting WordPress...
[22:53:52] [+] WordPress 7.1.4 detected (7.1s)
╭─ ◆ CMS Detection ─────────────────────────────────────────╮
│ WordPress : yes │
│ Version : 7.1.4 │
│ Confidence: high │
╰────────────────────────────────────────────────────────────╯
[22:53:52] [2/6] ▸ Fingerprinting tech stack (Wappalyzer)...
[22:53:55] [+] 15 technologies identified (3.4s)
[22:53:55] [3/6] ▸ Enumerating plugins & themes...
[22:54:01] [+] 12 plugins detected (5.4s)
[22:54:02] [+] 2 themes detected (1.8s)
[22:54:03] [*] WordPress.org plugin metadata (1.2s)
[22:54:04] [*] → 11 unique plugins after dedupe
[22:54:04] [4/6] ▸ Matching CVEs (version-filtered)...
[22:54:05] [+] 1 plugins with confirmed CVEs · 5 with historical · (0.8s)
[22:54:05] [+] Core: no CVEs affect this version
[22:54:05] [5/6] ▸ Querying domain intelligence...
[22:54:08] [+] Domain registered 22.2 years ago (3.4s)
[22:54:08] [6/6] ▸ Rendering results...
──────────────────────────────────────────────────────────────
Plugins
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┓
┃ Plugin ┃ Installed → Latest ┃ CVEs ┃ Author ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━┩
│ Jetpack – AI Agents & MCP, │ 15.8.1 → 16.4 │ 3 │ Automattic │
│ Security, Backup & Analytics│ │ │ │
│ Elementor Website Builder │ not detectable │ 66 hist. │ Elementor │
│ Rank Math SEO │ not detectable │ 40 hist. │ Rank Math SEO │
│ LiteSpeed Cache │ not detectable │ 30 hist. │ LiteSpeed Tech. │
└─────────────────────────────┴────────────────────┴───────────┴──────────────────────┘
⚠ Confirmed CVEs affecting installed versions (3)
┏━━━━━━━━━━━━━━┳━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━┓
┃ Plugin ┃Installed┃ CVE ┃ Title ┃ Severity ┃ CVSS ┃ Fixed In ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━┩
│ Jetpack │ 15.8.1 │ CVE-2024-10858 │ Cross-Site Script │ MEDIUM │ 6.1 │ 16.1.3* │
│ Jetpack │ 15.8.1 │ CVE-2026-106601 │ Auth Bypass │ MEDIUM │ 5.4 │ 16.3* │
│ Jetpack │ 15.8.1 │ CVE-2026-106602 │ Auth Bypass │ MEDIUM │ 4.8 │ 16.3* │
└──────────────┴─────────┴─────────────────┴────────────────────┴──────────┴──────┴──────────┘
* fixed-in version from WPVulnerability.net API — may reflect group fix
python3 run.py scan <URL> [OPTIONS]| Flag | Default | Description |
|---|---|---|
--scope <file> |
scope.txt |
Scope file — required (see below) |
--mode <mode> |
hybrid |
passive / rest / aggressive / hybrid |
--aggressive |
off | Enable readme.txt probing + custom slug list |
--fast |
off | Skip readme.txt probes entirely (faster, but may miss versions) |
--slugs <slug...> |
— | Custom plugin slugs for aggressive mode |
--workers <N> |
10 |
Parallel workers for enrichment |
--timeout <sec> |
15.0 |
Per-request HTTP timeout |
--debug-api |
off | Show raw API responses (troubleshooting) |
--output <file> |
— | Save JSON report |
--html <file> |
auto | Save HTML report (default: wpdetect_report.html) |
# Full scan with JSON + HTML
python3 run.py scan https://example.com --output scan.json --html report.html
# Fast mode (skip readme probes)
python3 run.py scan https://example.com --fast
# Passive only (HTML parsing — least noise)
python3 run.py scan https://example.com --mode passive
# Aggressive plugin probing
python3 run.py scan https://example.com --mode aggressive --slugs elementor jetpack
# Debug mode
python3 run.py scan https://example.com --debug-apiWP-DETECT refuses to scan any domain not listed in scope.txt. This is a hard requirement — it protects against accidental unauthorized scanning.
Create scope.txt in the same directory you run the tool from:
# WP-DETECT scope file
# One authorized domain per line. Wildcards supported (*.example.com).
example.com
www.example.com
staging.example.com
*.internal.example.com
Then run:
python3 run.py scan https://example.comThe tool loads scope.txt automatically. If the target isn't listed, it exits with:
✗ 'unlisted-domain.com' is NOT in scope.txt. Add it explicitly if you
have written authorization to test it.
Override the scope file location:
python3 run.py scan https://example.com --scope /path/to/my-scope.txt| Source | Used For | Cost |
|---|---|---|
| WPVulnerability.net | Plugin CVE matching (free, no key) | ✅ Free |
| WordPress.org Plugin API | Plugin names, authors, latest versions | ✅ Free |
| WordPress.org Theme API | Theme names, parents, latest versions | ✅ Free |
| Wappalyzer | Tech stack fingerprinting | ✅ Free |
| RDAP.org / Verisign | Domain registration data | ✅ Free |
| whois binary | Domain fallback (if installed) | ✅ Free |
No paid APIs, no rate-limited keys, no account needed. Everything works out of the box.
wp-detect/
├── README.md
├── LICENSE
├── requirements.txt
├── scope.txt.example
├── run.py
├── test_api.py ← diagnostic tool for API debugging
└── wpdetect/
├── __init__.py
├── cli.py ← main CLI
├── ui.py ← timestamped logs + spinners
├── scope.py ← scope enforcement
├── scan.py ← WordPress detection + tech stack
├── enumerate.py ← plugin/theme enumeration
├── vuln.py ← CVE matching + version filtering
├── domain.py ← RDAP domain lookup
├── report.py ← Rich CLI rendering
└── htmlreport.py ← self-contained HTML report
If CVE results look wrong, run the diagnostic to see exactly what the API returns:
python3 test_api.py jetpack elementor seo-by-rank-mathThis prints the raw JSON response shape and how the parser interprets it. Useful for:
- Debugging why a plugin shows
0CVEs - Verifying the API is reachable
- Confirming the parser handles new response shapes
The tool caches API responses for 2 hours in ~/.wpdetect/cache/. To force a refresh:
rm -rf ~/.wpdetect/cacheCross-check CVE matches against:
- CVE.org — official CVE records
- Patchstack — WordPress-specific
- Wordfence Intelligence — WordPress-specific
WP-DETECT is designed for authorized security assessments only.
- Security audits you are contractually authorized to perform
- CTF challenges and personal labs
- Bug bounty programs where the target is in scope
- Educational study on your own sites
- Vendor security research
- Scanning sites you don't own without written authorization
- Scanning competitors or third parties
- Any use violating local computer-misuse laws (CFAA, CMA, GDPR, etc.)
- Get written authorization from the target owner
- Add the domain to
scope.txt— the tool won't scan without this - Run the scan at responsible rates (default delays are conservative)
- Report findings to the owner responsibly
Scanning without authorization is illegal in most jurisdictions — even "just checking" the version is a violation.
| Feature | detectwpplugin.com | WP-DETECT |
|---|---|---|
| WordPress version detection | ✅ | ✅ |
| Plugin detection | ✅ | ✅ |
| Theme detection | ✅ | ✅ |
| Tech stack | ✅ (AI-enhanced) | ✅ (Wappalyzer) |
| CVE matching | ✅ | ✅ version-filtered |
| CVSS scores | ❌ Hidden | ✅ shown |
| Historical vs confirmed separation | Partial | ✅ explicit |
| Domain intelligence | ✅ | ✅ (when available) |
| CLI available | ❌ | ✅ |
| HTML report export | ✅ (online only) | ✅ local file |
| JSON export | ❌ | ✅ |
| Scope enforcement | ❌ | ✅ |
| Rate limit | 9 free / hour | ✅ unlimited (cached) |
| Requires account | ✅ | ❌ |
| Free | Freemium | ✅ 100% free |
v1.0 (current)
- ✅ WordPress + version detection
- ✅ Plugin/theme enumeration (3 modes)
- ✅ Version-filtered CVE matching
- ✅ CLI + HTML report
- ✅ Scope enforcement
v1.1 (planned)
- Domain intel via
ipinfo.iofree tier (fixes current RDAP reliability issue) - Full CVE titles (no truncation at column width)
- WPScan API as alternative backend
- Better parent-theme detection
v1.2+
- Docker container for CI/CD
- GitHub Actions workflow
- WPScan-style password strength detection on login page
- Redirect chain analysis
- Passive subdomain enumeration
Issues and PRs welcome. For significant changes:
- Open an issue first to discuss
- Fork the repo
- Create a feature branch
- Submit a PR with a clear description
Areas where help is welcome:
- Additional API backends (Patchstack, Wordfence Intelligence)
- Better version detection heuristics
- More test coverage
- Documentation improvements
- WPVulnerability.net — free, open vulnerability database
- WordPress.org — plugin/theme metadata APIs
- Wappalyzer — tech fingerprinting
- Rich — terminal UI
- BeautifulSoup — HTML parsing
- Inspired by detectwpplugin.com — proving a CLI alternative was worth building
GNU Affero General Public License v3.0 (AGPL-3.0-or-later)
Copyright (C) 2025 DEDSEC <https://github.com/Unknownx007>
You must:
- Keep the copyright notice (
Copyright (C) 2025 DEDSEC) - Credit the original author in any redistribution
- Share your source if you distribute or offer this as a network service
- License your fork under AGPLv3
Full text: LICENSE · gnu.org/licenses/agpl-3.0
DEDSEC
- GitHub: @Unknownx007
- Project: github.com/Unknownx007/wp-detect
⭐ Star this repo if you find it useful ⭐
"Know the WordPress surface before you touch it."