{
    "title": "WordPress user names are public",
    "description": "User names show in the REST API or on author pages, which gives password guessers half of what they need.",
    "url": "https://ursy.com/issues/wordpress-user-names-public/",
    "canonical": "https://ursy.com/issues/wordpress-user-names-public/",
    "markdown": "https://ursy.com/issues/wordpress-user-names-public/index.md",
    "json": "https://ursy.com/issues/wordpress-user-names-public/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/wordpress-user-names-public/",
    "start_here": {
        "page": "https://ursy.com/issues/wordpress-user-names-public/",
        "markdown": "https://ursy.com/issues/wordpress-user-names-public/index.md",
        "json": "https://ursy.com/issues/wordpress-user-names-public/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "wordpress-user-names-public",
        "problem": "WordPress user names are public",
        "summary": "User names show in the REST API or on author pages, which gives password guessers half of what they need.",
        "status": "Live",
        "priority": "medium",
        "category": "security",
        "category_title": "Security and HTTPS",
        "why_it_matters": [
            "WordPress lists authors with published posts at /wp-json/wp/v2/users, and on many sites /?author=1 redirects to /author/name/. The name shown is often the sign-in name, which is half of what someone guessing passwords needs.",
            "It is a clue rather than a hole: strong passwords and two-step sign-in matter much more. But many attacks start by collecting user names this way."
        ],
        "how_to_fix": [
            "Limit the users route of the REST API to signed-in visitors with a security plugin or a few lines of code. Do not switch off the whole REST API, because the block editor needs it. Most security plugins can also stop the author-number redirects.",
            "Make sure no account uses a guessable name such as admin, and use strong passwords and two-step sign-in for every administrator. Check with the WordPress Security Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Open /wp-json/wp/v2/users in a private window: it should not list your users. Run the WordPress Security Checker again and it should not report public user names.",
        "found_by": [
            {
                "tool": "wordpress-security-checker",
                "name": "WordPress Security Checker",
                "status": "Live",
                "page": "https://ursy.com/wordpress-security-checker/",
                "card": "https://ursy.com/wordpress-security-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/wordpress-user-names-public",
        "source": {
            "url": "https://developer.wordpress.org/advanced-administration/security/hardening/",
            "title": "WordPress.org: Hardening WordPress"
        },
        "cite": "WordPress user names are public. URSY.com. https://ursy.com/issues/wordpress-user-names-public/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#wordpress"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#questions"
        },
        {
            "level": 3,
            "text": "Will this break the block editor?",
            "id": "will-this-break-the-block-editor",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#will-this-break-the-block-editor"
        },
        {
            "level": 3,
            "text": "Does this mean my site has been hacked?",
            "id": "does-this-mean-my-site-has-been-hacked",
            "url": "https://ursy.com/issues/wordpress-user-names-public/#does-this-mean-my-site-has-been-hacked"
        }
    ],
    "links": [
        {
            "text": "redirects",
            "url": "https://ursy.com/wiki/redirect/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "WordPress.org: Hardening WordPress",
            "url": "https://developer.wordpress.org/advanced-administration/security/hardening/",
            "internal": false
        }
    ],
    "words": 581,
    "text": "User names show in the REST API or on author pages, which gives password guessers half of what they need. Why it matters WordPress lists authors with published posts at /wp-json/wp/v2/users, and on many sites /?author=1 redirects to /author/name/. The name shown is often the sign-in name, which is half of what someone guessing passwords needs. It is a clue rather than a hole: strong passwords and two-step sign-in matter much more. But many attacks start by collecting user names this way. How to fix it Limit the users route of the REST API to signed-in visitors with a security plugin or a few lines of code. Do not switch off the whole REST API, because the block editor needs it. Most security plugins can also stop the author-number redirects. Make sure no account uses a guessable name such as admin, and use strong passwords and two-step sign-in for every administrator. Check with the WordPress Security Checker. What the problem looks like [{\"id\": 1, \"name\": \"admin\", \"slug\": \"admin\", \"link\": \"https://www.example.com/author/admin/\"}] What /wp-json/wp/v2/users can show anyone: the slug is often the sign-in name. What it looks like fixed add_filter( 'rest_endpoints', function ( $endpoints ) { if ( ! is_user_logged_in() ) { unset( $endpoints['/wp/v2/users'], $endpoints['/wp/v2/users/(?P<id>[\\d]+)'] ); } return $endpoints; } ); In a small custom plugin: the users route is hidden from signed-out visitors, while the block editor keeps working for you. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: Help me protect the accounts on [your website address], a WordPress site. A checker says user names are public through /wp-json/wp/v2/users or author pages such as /?author=1. First check: ask me what those two addresses show in a private window, and which plugins I use that might need the REST API. Explain plainly what is exposed. Then give me the fix: limit the users route of the REST API to signed-in visitors with a small custom plugin or a security plugin setting, and stop the author-number redirect. Rules: do not switch off the whole REST API, because the block editor and many plugins need it; back up first; keep author archive pages working if I use them; and do not change any page addresses. Also tell me to rename any account called admin, use strong passwords and turn on two-step sign-in for administrators. Give exact code and where it goes. Finally, tell me to re-check with the URSY.com WordPress Security Checker at ursy.com/wordpress-security-checker/. Fix it on your platform WordPress Use a security plugin option or the code above to limit the users route, and stop author-number redirects. Set each account's \"Display name publicly as\" to something other than the sign-in name, and turn on two-step sign-in for administrators. Check it is fixed Open /wp-json/wp/v2/users in a private window: it should not list your users. Run the WordPress Security Checker again and it should not report public user names. Official source WordPress.org: Hardening WordPress Questions Will this break the block editor? Not when you limit it to signed-out visitors only. The editor works while you are signed in. Does this mean my site has been hacked? No. WordPress lists authors this way by default. It is a clue for attackers, so strong passwords and two-step sign-in are what really protect you.",
    "source": "https://ursy.com/issues/wordpress-user-names-public/"
}