WordPress user enumeration is how bots collect the login names on your site before they start guessing passwords. Out of the box, WordPress will hand those names to anyone who asks, through author links, the REST API, the login form and a few quieter routes. It isn't an attack on its own. It's the reconnaissance that makes the next attack, password guessing, much more likely to work.

The short answer: enumeration is worth stopping because it's cheap to stop and it removes half of what an attacker needs. It is not worth panicking over, and hiding usernames is never a substitute for strong passwords and two-factor authentication. Block the leaks for logged-out visitors, keep author pages if your blog uses them, and put the real effort into the login itself.

I'm Shane Larrabee. I've run FatLab, a managed WordPress host, since 2011, and we host 200+ WordPress sites. This summer we watched enumeration feed a live credential attack on a site we'd just taken on, and we responded by closing the main leaks on every site we host. This article covers how enumeration works, how to check your own site, how to stop it, and where its limits are.

How WordPress User Enumeration Works

WordPress treats usernames as public information. That's a deliberate position, not an oversight: the project's own security reporting guidelines say usernames and user IDs aren't secret, and that the answer is strong passwords rather than hiding a public identifier. So several default behaviors leak them.

Author Archive Links (?author=1)

This is the oldest method. Every WordPress user has a numeric ID, and ID 1 is usually the account that installed the site. Request /?author=1 and WordPress redirects you to that author's archive page:

Request:  GET https://example.com/?author=1
Response: 301 → https://example.com/author/jsmith/

The last part of that address, the author slug, is created from the login name by default. Count upward (?author=2, ?author=3) and you get the rest. Free tools like WPScan do this automatically in seconds, with no login required.

The REST API Users Endpoint (/wp-json/wp/v2/users)

Since WordPress 4.7, the REST API users endpoint answers anyone who asks. One request to /wp-json/wp/v2/users returns the ID, display name, author slug and avatar of every user who has published a post. One request, every author, no counting needed.

The endpoint has had real bugs too. In 2023 WordPress fixed CVE-2023-5561, which let anyone work out the email address of any published author by searching the endpoint a few characters at a time. Every version from 4.7 through 6.3.1 was affected. That matters because WordPress also accepts an email address at the login screen.

The Login and Password Reset Forms

Type a username that doesn't exist into the WordPress login form and it says so: the username isn't registered on this site. Type a real username with the wrong password and the message changes to say the password is wrong for that user. That difference lets a bot test names one by one without ever guessing a password. The lost password form gives away the same answer. OWASP's authentication guidance recommends one generic message for every failure for exactly this reason.

The Quieter Routes: Bylines, Feeds, oEmbed and the Sitemap

  • Your byline. Unless someone changes it, a WordPress user's public display name is their login name. Every post, every RSS feed item and every author box then prints it for the world.
  • oEmbed. When another site embeds one of your posts, WordPress sends along the author's name and archive link.
  • The users sitemap. Since WordPress 5.5, the built-in sitemap includes wp-sitemap-users-1.xml, a list of author archive links, slugs included. The WordPress 5.5 sitemaps announcement shows how to remove it.

XML-RPC

The older XML-RPC interface at /xmlrpc.php is a second login door, switched on by default. In 2015 attackers used its system.multicall feature to try hundreds of passwords in a single request. WordPress 4.4 stopped the batch at the first wrong password, so that trick is history. XML-RPC still accepts logins, though, and many sites don't need it. Jetpack is the main exception: it still uses XML-RPC.

Enumeration Routes at a Glance

Route What it gives away Requests needed On by default
?author=N Author slug (usually the login name) 1 per user Yes
/wp-json/wp/v2/users ID, display name, slug, avatar of every published author 1 total Yes, since 4.7
Login and reset forms Whether a username exists 1 per test Yes
Bylines and RSS feeds Display name (the login name unless changed) 1 Yes
oEmbed Author name and archive link 1 per post Yes
Users sitemap Every author archive link 1 Yes, since 5.5
XML-RPC A second login door for testing passwords 1 per guess Yes

A laptop displaying a terminal window with scrolling lines of automated website scanning output in a dark workspace

Why It Matters: What We Saw This Summer

I think of enumeration as reconnaissance for a second-level attack: once they have your usernames, they move to brute force for passwords. This summer we watched that happen in real time.

A national advocacy organization came to us after its site was broken into on another platform. That break-in started with slow password guessing against the site's old admin account, which I wrote about in our guide to WordPress brute force protection. We cleaned the site and moved it onto our hosting. Within days of the move, a new credential attack started: 17 failed logins from 12 different addresses over one weekend, spaced hours apart so no lockout would ever trip.

What made it different was the usernames. Alongside the usual admin and root, the bot was trying the real login names of three staff members. It had them because the site's REST API users list was open, and on that site each person's login name was also their public display name. The site handed over exact login names to anyone who asked.

None of those 17 attempts got in. But it was the clearest demonstration I've seen of why enumeration matters: it turns a random guess into a targeted one. We wrote a fix that week and, on August 20, put it on every site we host in a single day. More on what it does below.

Who Should Care Most

Scale matters with this threat. If your site has two administrators with strong passwords and two-factor login, enumeration is a minor concern. A membership site with thousands of member accounts is a different story: every exposed username is another account an attacker can try, and members rarely choose strong passwords.

"You don't have to be on anyone's threat list. You don't have to be a target. You don't have to be controversial. Your website can fall victim to a security attack even if you've never done anything controversial at all."

The bots doing this don't pick targets. They work through lists of sites. Wordfence alone reported blocking 16 billion password attacks in the first three months of 2026, according to its Q1 2026 threat report.

The "admin" Problem

If your site still has a user called admin, an attacker doesn't need to enumerate anything. Before WordPress 3.0 every install created that account, and it's still the first name every bot tries. In April 2013, a botnet using tens of thousands of addresses ran a worldwide password-guessing campaign against WordPress admin accounts, big enough that CISA issued an alert. Thirteen years later, the advocacy organization above was broken into through an account with that same name.

How to Check Your Own Site in Two Minutes

You don't need any tools. Log out of WordPress (or open a private browser window) and try these:

  1. Visit https://yoursite.com/wp-json/wp/v2/users. If you see a list with names and slugs, your users list is public. A "not found" or "not allowed" message means it's closed.
  2. Visit https://yoursite.com/?author=1. If the address changes to /author/something/, that "something" is probably a login name.
  3. Try to log in with a username you know doesn't exist. If the message says the username isn't registered, the login form is confirming usernames.
  4. Look at a post's byline. If it shows something like jsmith or admin rather than a real name, the display name is the login name.

If any of those leak, the fixes are next. You can run the same checks on any site we host and see the result for yourself.

How to Stop WordPress User Enumeration

Do these in order. The first group makes enumeration pointless. The second closes the leaks.

First, Make a Known Username Useless

  • Two-factor authentication for everyone who can log in, not only administrators. A username plus a guessed or leaked password is then not enough. Our WordPress two-factor authentication guide covers the options.
  • Strong, unique passwords. A known username paired with a strong password is still a dead end. Reused passwords are the real risk, because credential stuffing uses email and password pairs leaked from other sites, and WordPress accepts an email address as a login. Hiding usernames does nothing against that.
  • Limits on login attempts, ideally before WordPress. A firewall or server rule that slows repeated failures stops the volume. A lockout plugin is a reasonable backstop, but as the summer case shows, a patient attacker stays under its counter.
  • No admin account. WordPress won't let you rename a user. Create a new administrator with a different name, then delete admin and assign its posts to the new account when WordPress asks.

Then Close the Leaks

  • Hide the REST API users list from logged-out visitors. Don't switch off the REST API entirely: the block editor and many plugins depend on it. The editor works while you're logged in, so restricting only logged-out requests to /wp/v2/users doesn't break it. A security plugin or a few lines of code can do this.
  • Stop ?author=N from redirecting. Make the numeric form return "not found." Author pages at /author/name/ can keep working.
  • Make the login form say the same thing for every failure. WordPress has a filter for this (login_errors), and most security plugins have a setting for it.
  • Change public display names. In each user's profile, set "Display name publicly as" to a real name or nickname, not the login name.
  • Decide about author pages. If your site doesn't use author archives, turn them off and remove the users sitemap. If it does, make sure each author's slug isn't their login name.
  • Close XML-RPC if nothing uses it, ideally at the server or firewall so the request never loads WordPress. Check for Jetpack or a publishing app first.

Plugins That Do This

If you'd rather not write code, several plugins cover most of the list. The free Stop User Enumeration plugin does just this job. Wordfence has a setting that blocks username discovery through author scans, the REST API, oEmbed and the sitemap, and other WordPress security plugins offer similar switches. Check what your plugin actually covers. None that I know of fixes your bylines for you.

A heavy reinforced door with multiple distinct deadbolt locks and a keypad entry system, representing layered WordPress security

How We Handle It on Every Site We Host

After the summer attack, we added enumeration protection to the small FatLab plugin that runs on every site we host. It's a must-use plugin: WordPress loads it automatically and it can't be switched off from the plugins screen, so it can't be disabled by accident. On every site it:

  • Hides the REST API users list from anyone who isn't logged in. Logged-out requests to /wp-json/wp/v2/users get a "not found" answer.
  • Stops author ID scanning. ?author=1 returns a not found page instead of redirecting to a username.
  • Strips author details from oEmbed responses.
  • Gives one login error for everything: "Login failed. Please check your details and try again." A wrong username and a wrong password look the same.

What it deliberately leaves alone: author pages at /author/name/, because many of our clients run bylined blogs, and the REST API for logged-in users, so the editor works normally. Bylines and XML-RPC we handle site by site, because some sites need them.

That plugin is one layer of our managed WordPress security. Every production site we host also sits behind Cloudflare's enterprise firewall, which puts a browser check in front of the WordPress login page, and every server runs Imunify360, which blocks logins that use passwords from known leaked-password lists. We add two-factor authentication and a Cloudflare Turnstile check to any client site on request, free on every plan. One more thing we learned from the summer case: a firewall only helps if traffic goes through it, which is why the plugin's protection lives inside WordPress itself, where a request that skips the firewall still meets it.

We don't rely on hiding the login page at a secret address. It cuts some noise, but it does nothing against a stolen password, and clients forget the new address. Treat it as a nice extra, never as the protection.

What to Do If a Scan Flagged Enumeration

If a security scan or audit reported "user enumeration" on your site, don't panic. Most WordPress sites get scanned for usernames sooner or later, and enumeration alone doesn't mean anyone got in. Do this:

  1. Look for login attempts that followed. Your host's logs or a security plugin's activity log will show failed logins. Attempts on real staff names, rather than admin, mean the list was harvested.
  2. Check your user list for accounts you don't recognize, especially administrators. A new admin account is a common sign of a break-in.
  3. Turn on two-factor authentication for everyone who can log in. This is the fastest way to make a harvested username worthless.
  4. Close the leaks listed above.
  5. Consider a broader review. If the scan found this, it may have found other gaps. Our guide to a WordPress security audit explains what a proper review covers.

Enumeration also feeds other abuse. Bots that harvest account details are often the same ones creating fake accounts, which we cover in WordPress spam registrations.

Enumeration in Context

User enumeration is a real gap, but a small and fixable one. It's not the thing that keeps security people up at night. It gets closed in a proper hardening pass and stays closed. It matters because of what it makes easier: targeted password guessing against real accounts. That's one of the main ways WordPress sites get hacked, and it's why no host can honestly promise a secure WordPress hosting setup without real protection on the login itself.

"Anyone who's guaranteeing you 100% security is a fool."

If you're not sure what your site is giving away, or whether anyone is handling the login side of security at all, we can tell you quickly. Our WordPress security services page covers what we put in place on every site we host, or you can compare our hosting plans to see what's included.

FAQ

Is WordPress user enumeration a vulnerability?

WordPress itself says no. Its security team treats usernames as public and won't accept enumeration as a security report. Security scanners rate it low to medium. We treat it as cheap hardening: it can't break into a site by itself, but it makes password attacks more targeted, and closing it takes minutes.

Should I block /wp-json/wp/v2/users?

For logged-out visitors, yes, unless something on your site needs it. The block editor uses it while you're logged in, so blocking only logged-out requests leaves the editor working. Watch for a staff directory or team plugin that reads the list publicly, since it would stop showing people.

Will disabling user enumeration break my site?

Usually not, if you do it narrowly. What breaks things is switching off the whole REST API, or turning off author pages on a site that uses them. Hide the users list from logged-out visitors, stop the ?author=N redirect and normalize login errors, and most sites see no difference.

Does hiding usernames stop brute force attacks?

No. It removes half the guesswork, but WordPress accepts an email address at the login screen, and credential stuffing uses email and password pairs leaked from other sites. Two-factor authentication and limits on login attempts are what actually stop brute force.

How do I know if my site has been enumerated?

Assume it has. Look in your logs for requests to /wp-json/wp/v2/users or ?author= followed by failed logins. Failed logins on real staff usernames are the sign that a harvested list is being used.

Does changing the "admin" username help?

Yes. admin is the first username every bot tries, so a site with an admin account has already handed over half the credential. Create a new administrator, delete admin, and assign its posts to the new account.