WordPress and PHP security
wp_securityChecks a WordPress site against known vulnerabilities and tells what to update first. Use when the user asks if a site is safe or up to date, or before advising on updates or hosting: pass the site's WordPress and PHP versions, plugins and themes (slug:version, or the pasted output of wp plugin list / wp theme list) in one call. Returns an ordered urgent list with the fixed versions, the update commands, and only the plugins and themes that need attention (pass detail "full" for every row). Without a site, returns the latest WordPress and PHP security releases and which branches still get fixes. It compares versions with public records (Wordfence, CVE, CISA KEV): it never scans or logs in to a site.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_security"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| php | No | The PHP version a site runs, e.g. "8.1.30": says if that branch still gets security fixes (a plugin's minimum PHP can be checked here too, as a branch status) | |
| detail | No | For a site check. "short" (default): what to do first, and only the plugins and themes that need attention, the others by name. "full": every row with its records, plus the general security actions and the branch tables. | |
| themes | No | The site's themes: "astra:4.6, twentytwentyfive:1.2", or the raw output of `wp theme list --fields=name,status,version --format=csv`. Up to 10. Checked for known vulnerabilities against the installed version. | |
| plugins | No | The site's plugins: "akismet:5.3, contact-form-7:6.0.1, woocommerce", or the raw output of `wp plugin list --fields=name,version,status,update_id --format=csv` (or --format=json) pasted as is. Up to 60. Plugins outside WordPress.org (premium, commercial) are checked under their own slug; must-use plugins are skipped and listed. | |
| wordpress | No | The WordPress version a site runs, e.g. "6.8.2": says if that branch still gets security fixes. Not a plugin's minimum requirement: for what changed since a version, use wp_today with since |