# OpenID Connect Generic Client <= 3.11.6 - Unauthenticated Authentication Bypass via Subject Identity User Lookup

- **ID:** WPSEC-2026-4692
- **Plugin:** OpenID Connect Generic Client (`daggerhart-openid-connect-generic`), https://wordpress.org/plugins/daggerhart-openid-connect-generic/
- **Affected versions:** all versions before 3.11.7
- **Fixed in:** 3.11.7 (Update to 3.11.7 or later.)
- **Severity:** High 8.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-289
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-12-05)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/daggerhart-openid-connect-generic
- **Fix released:** 2026-12-04
- **Published:** 2026-12-05
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4692/

## Description

The OpenID Connect Generic Client plugin for WordPress is vulnerable to Authentication Bypass via the subject identity user lookup in all versions up to, and including, 3.11.6. This is due to the get_user_by_identity() function finding the linked WordPress user with a user meta query, which the database compares without regard to letter case or accents (and may ignore trailing spaces), and then returning the first result without checking that the stored subject identity exactly matches the 'sub' claim of the authenticated identity. This makes it possible for unauthenticated attackers who hold an account at the configured identity provider whose subject identifier only differs in this way from another user's to log in as that WordPress user, possibly an administrator.

## References

- https://wpsec.com/vuln/WPSEC-2026-4692/
- https://plugins.svn.wordpress.org/daggerhart-openid-connect-generic/tags/3.11.7/
- https://wordpress.org/plugins/daggerhart-openid-connect-generic/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4692/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
