WordPress 7.1.5 fixes 20 security issues. Check your site has actually updated
If your website runs on WordPress, check it's on 7.1.5. It came out on Wednesday with 20 security fixes, and WordPress says it is "recommended that you update your sites immediately."
Most sites will have updated themselves already. The ones that haven't are the ones I'd worry about, so here's how to tell which sort yours is.
What happened
On 18 November WordPress released version 7.1.5. The release post lists 20 fixes. Patchstack, who track WordPress security, count 18 of them as real vulnerabilities and the other two as hardening.
This comes less than three weeks after 7.1.4, which fixed the updater flaw that later turned up on the US government's exploited list. So if you skipped that one, you have two reasons to update now.
The fix that stands out is in the Template Part block. WordPress describes it as an unauthenticated privilege escalation "that could lead to remote code execution". In plain English: someone without a login might end up running their own code on your server.
There's a catch, and Patchstack explain it well. The attacker has to get some crafted block content in front of someone who can open it in the editor. When that logged-in person opens it, their browser can be tricked into sending requests the attacker chose, using that person's own login. Getting from there to running code goes through the plugin installer, so it needs an administrator to be the one who opens it. Not trivial, but not something to leave sitting either.
A few of the others are worth knowing about:
- Stored XSS through comments. Someone with no account can leave a comment that runs script in visitors' browsers, but only on a page showing the core Latest Comments block.
- SQL injection in
WP_Meta_Query. This needs a plugin or theme that passes visitor input straight into a meta query, so it depends on what else you run. - A denial of service through batched XML-RPC pingbacks, no login needed.
- On multisite, a site administrator could make themselves Super Admin.
Several of the rest need a Contributor, Author or Editor account to pull off.
Nothing I've read says any of these are being used in attacks yet. Patchstack also note that no CVE numbers had been assigned when they wrote their piece. But the fixes are public now, and Dev Partners wrote last week about AI turning security patches into working attacks. I wouldn't count on a quiet few weeks.
Does it affect you?
Managed WordPress hosting. Your host almost certainly handles core updates. Log in and check the version anyway. It takes ten seconds.
Your own server, or a host that leaves updates to you. WordPress normally installs minor security releases on its own. The release post says the update "will begin automatically" on sites that support background updates. The trouble is the sites where someone has switched that off, usually years ago, usually for a reason nobody remembers.
Older versions. WordPress says the fixes are being backported to every branch back to 4.7, and those backports "will ship as they become ready". 7.0.9 came out on the same day. If you're on an older branch, check whether yours is out yet. Anything older than 4.7 gets nothing, and that's a much bigger problem than this update.
What to do this week
1. Check your version. In the dashboard, go to Dashboard, then Updates. If you have shell access and WP-CLI:
wp core versionYou want 7.1.5, or the latest release on your branch.
2. Update if you're not there. Click the button, or run wp core update. Take a backup first if you don't already have a recent one.
3. Find out why it didn't update itself. If it was behind, look in wp-config.php for anything switching updates off:
grep -nE 'AUTOMATIC_UPDATER_DISABLED|WP_AUTO_UPDATE_CORE' wp-config.phpIf one of those is there and nobody knows why, find out. Switching updates off on purpose is fine, as long as someone is then doing them by hand.
4. Look at who has an account. Patchstack suggest checking who holds Contributor or above while you're in there, and I agree. Old staff, a freelancer from 2022, a test account. If they don't need it, remove it. On multisite, check the Administrator list on each site too.
5. Think about XML-RPC. If nothing on your site uses it, you can block xmlrpc.php at the web server. Do check first, because some plugins and apps rely on it.
The bigger point
Two security releases in under three weeks is a lot, but it's also the system working. Most sites will have taken both without anyone lifting a finger.
The risk sits with sites where updates have been switched off, or where nobody has logged in for months. If that sounds like yours, it's worth sorting this week rather than whenever.
If your WordPress site has custom code or bespoke plugins and you're nervous about updates breaking something, the team at Dev Partners look after existing software and can test it properly first.
And if you'd rather someone else checked the versions and did the updates, that's what my support retainers are for.
Liked that? Get the next one by email
When a security flaw lands that could affect your server, I'll email you what it means and what to do. Plus the odd opinion piece. Not often, no spam.