# OpenID Connect Generic Client <= 3.11.6 - Unauthenticated Authentication Bypass via Existing Account Linking

- **ID:** WPSEC-2026-4691
- **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-4691/

## Description

The OpenID Connect Generic Client plugin for WordPress is vulnerable to Authentication Bypass via the Link Existing Users feature in all versions up to, and including, 3.11.6. This is due to the plugin finding the account to link with username_exists() on the sanitized username claim or with email_exists() on the claimed email. Neither lookup checks that the matched account's stored user login or email is the same as the claimed value, so a different name or address can match through sanitization or a case- and accent-insensitive database comparison. The plugin also accepts the 'email_verified' claim even when the email address being linked comes from a claim other than 'email', through the email format setting. This makes it possible for unauthenticated attackers who control their claims at the configured identity provider to have their identity linked to an existing WordPress account, such as an administrator, and log in as that user when the site has enabled linking of existing users.

## References

- https://wpsec.com/vuln/WPSEC-2026-4691/
- 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-4691/

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.
