CVE-2026-54768
WPGraphQL has deprecated `user` field on SendPasswordResetEmailPayload that leaks user existence + profile (defeats explicit anti-enumeration design)
WPGraphQL provides a GraphQL API for WordPress sites. From 2.0.0 until 2.15.1, the deprecated user field on SendPasswordResetEmailPayload lets an unauthenticated caller distinguish existing author-class accounts through the sendPasswordResetEmail mutation and obtain public profile fields. This issue is fixed in version 2.15.1.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.9
WPGraphQL has deprecated `user` field on SendPasswordResetEmailPayload that leaks user existence + profile (defeats explicit anti-enumeration design)
WPGraphQL provides a GraphQL API for WordPress sites. From 2.0.0 until 2.15.1, the deprecated user field on SendPasswordResetEmailPayload lets an unauthenticated caller distinguish existing author-class accounts through the sendPasswordResetEmail mutation and obtain public profile fields. This issue is fixed in version 2.15.1.
- Record
CVE-2026-54768- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-204
- Updated
- 2026-11-02
EUVDEUVD-2026-51676
6.9
WPGraphQL provides a GraphQL API for WordPress sites. From 2.0.0 until 2.15.1, the deprecated user field on SendPasswordResetEmailPayload lets an unauthenticated caller distinguish existing author-class accounts through the sendPasswordResetEmail mutation and obtain public profile fields. This issue is fixed in version 2.15.1.
- Record
EUVD-2026-51676- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-jhh7-832h-f8hv
6.9
WPGraphQL has deprecated `user` field on SendPasswordResetEmailPayload that leaks user existence + profile (defeats explicit anti-enumeration design)
Summary
The sendPasswordResetEmail mutation in WPGraphQL is explicitly designed to prevent user enumeration. The resolver in src/Mutation/SendPasswordResetEmail.php states in a code comment:
// We obsfucate the actual success of this mutation to prevent user enumeration.
The mutation always returns success: true regardless of whether the supplied username/email belongs to an existing user. The intended public output field is only success: Boolean.
However, a deprecated user field is still registered on the SendPasswordResetEmailPayload output type in src/Deprecated.php (lines 433-450). This deprecated field resolves to a full User object when the supplied username/email corresponds to an existing author-class user, and null otherwise — completely undermining the anti-enumeration design.
The @todo remove in 3.0.0 comment acknowledges the field is scheduled for removal, but it remains active in all 2.x releases, including current 2.14.1.
Discovered via source code review on May 29, 2026.
Details
The mutation resolver in src/Mutation/SendPasswordResetEmail.php:
$payload = ['success' => true, 'id' => null];
$user_data = self::get_user_data($input['username']);
if (!$user_data) {
graphql_debug(...);
return $payload; // id stays null
}
// ...send email, then...
return ['id' => $user_data->ID, 'success' => true];
The intended public output field is only success. The id is internal-only state for downstream resolvers.
src/Deprecated.php registers an additional user field on the same payload type:
register_graphql_field(
'SendPasswordResetEmailPayload',
'user',
[
'type' => 'User',
'deprecationReason' => static function () { return __('This field will be removed...'); },
'resolve' => static function ($payload, $args, AppContext $context) {
return !empty($payload['id'])
? $context->get_loader('user')->load_deferred($payload['id'])
: null;
},
],
);
This field reads the internal $payload['id'] and resolves it through the standard user loader. The User Model's allowed_restricted_fields policy permits unauthenticated reads of public author fields (databaseId, name, firstName, lastName, slug, description, uri, url).
PoC
mutation EnumerateUser {
sendPasswordResetEmail(input: { username: "[email protected]" }) {
success
user {
databaseId
name
firstName
lastName
slug
description
uri
}
}
}
Behavior:
- Non-existing user/email →
data.sendPasswordResetEmail.userisnull -
- Existing author-class user →
data.sendPasswordResetEmail.useris a full User object with the listed fields populated
- Existing author-class user →
-
successalways returnstrue, preserving the appearance of obfuscation — the deprecateduserfield is the leak
Impact
- Username/email enumeration: unauthenticated attacker can verify whether any username or email is registered, with no WPGraphQL-side rate limiting
-
- Profile disclosure for author-class users: for any user with published posts (including editors and administrators), the attacker obtains
databaseId,name,firstName,lastName,slug,description(user bio),uri— substantially more than mere existence
- Profile disclosure for author-class users: for any user with published posts (including editors and administrators), the attacker obtains
-
- Bypasses partial hardening: sites that disabled the REST API user endpoint, the user XML sitemap, and
?author=Nauthor redirects may still be vulnerable through this WPGraphQL path
- Bypasses partial hardening: sites that disabled the REST API user endpoint, the user XML sitemap, and
-
- Spearphishing setup: firstName/lastName/description for authors provides personalized phishing material
Recommended fix
Either remove the deprecated user field entirely (advance the existing @todo remove in 3.0.0) or change the resolver to always return null:
'resolve' => static function ($payload, $args, AppContext $context) {
- return !empty($payload['id']) ?…
- Record
GHSA-jhh7-832h-f8hv- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-204
- Updated
- 2026-11-02
NVD
6.9
WPGraphQL provides a GraphQL API for WordPress sites. From 2.0.0 until 2.15.1, the deprecated user field on SendPasswordResetEmailPayload lets an unauthenticated caller distinguish existing author-class accounts through the sendPasswordResetEmail mutation and obtain public profile fields. This issue is fixed in version 2.15.1.
- Record
CVE-2026-54768- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Weakness
- CWE-204
- Updated
- 2026-11-02
OSV
6.9
WPGraphQL has deprecated `user` field on SendPasswordResetEmailPayload that leaks user existence + profile (defeats explicit anti-enumeration design)
WPGraphQL provides a GraphQL API for WordPress sites. From 2.0.0 until 2.15.1, the deprecated user field on SendPasswordResetEmailPayload lets an unauthenticated caller distinguish existing author-class accounts through the sendPasswordResetEmail mutation and obtain public profile fields. This issue is fixed in version 2.15.1.
- Record
CVE-2026-54768- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-204
- Updated
- 2026-11-02
OSVGHSA-jhh7-832h-f8hv
6.9
WPGraphQL has deprecated `user` field on SendPasswordResetEmailPayload that leaks user existence + profile (defeats explicit anti-enumeration design)
Summary
The sendPasswordResetEmail mutation in WPGraphQL is explicitly designed to prevent user enumeration. The resolver in src/Mutation/SendPasswordResetEmail.php states in a code comment:
// We obsfucate the actual success of this mutation to prevent user enumeration.
The mutation always returns success: true regardless of whether the supplied username/email belongs to an existing user. The intended public output field is only success: Boolean.
However, a deprecated user field is still registered on the SendPasswordResetEmailPayload output type in src/Deprecated.php (lines 433-450). This deprecated field resolves to a full User object when the supplied username/email corresponds to an existing author-class user, and null otherwise — completely undermining the anti-enumeration design.
The @todo remove in 3.0.0 comment acknowledges the field is scheduled for removal, but it remains active in all 2.x releases, including current 2.14.1.
Discovered via source code review on May 29, 2026.
Details
The mutation resolver in src/Mutation/SendPasswordResetEmail.php:
$payload = ['success' => true, 'id' => null];
$user_data = self::get_user_data($input['username']);
if (!$user_data) {
graphql_debug(...);
return $payload; // id stays null
}
// ...send email, then...
return ['id' => $user_data->ID, 'success' => true];
The intended public output field is only success. The id is internal-only state for downstream resolvers.
src/Deprecated.php registers an additional user field on the same payload type:
register_graphql_field(
'SendPasswordResetEmailPayload',
'user',
[
'type' => 'User',
'deprecationReason' => static function () { return __('This field will be removed...'); },
'resolve' => static function ($payload, $args, AppContext $context) {
return !empty($payload['id'])
? $context->get_loader('user')->load_deferred($payload['id'])
: null;
},
],
);
This field reads the internal $payload['id'] and resolves it through the standard user loader. The User Model's allowed_restricted_fields policy permits unauthenticated reads of public author fields (databaseId, name, firstName, lastName, slug, description, uri, url).
PoC
mutation EnumerateUser {
sendPasswordResetEmail(input: { username: "[email protected]" }) {
success
user {
databaseId
name
firstName
lastName
slug
description
uri
}
}
}
Behavior:
- Non-existing user/email →
data.sendPasswordResetEmail.userisnull -
- Existing author-class user →
data.sendPasswordResetEmail.useris a full User object with the listed fields populated
- Existing author-class user →
-
successalways returnstrue, preserving the appearance of obfuscation — the deprecateduserfield is the leak
Impact
- Username/email enumeration: unauthenticated attacker can verify whether any username or email is registered, with no WPGraphQL-side rate limiting
-
- Profile disclosure for author-class users: for any user with published posts (including editors and administrators), the attacker obtains
databaseId,name,firstName,lastName,slug,description(user bio),uri— substantially more than mere existence
- Profile disclosure for author-class users: for any user with published posts (including editors and administrators), the attacker obtains
-
- Bypasses partial hardening: sites that disabled the REST API user endpoint, the user XML sitemap, and
?author=Nauthor redirects may still be vulnerable through this WPGraphQL path
- Bypasses partial hardening: sites that disabled the REST API user endpoint, the user XML sitemap, and
-
- Spearphishing setup: firstName/lastName/description for authors provides personalized phishing material
Recommended fix
Either remove the deprecated user field entirely (advance the existing @todo remove in 3.0.0) or change the resolver to always return null:
'resolve' => static function ($payload, $args, AppContext $context) {
- return !empty($payload['id']) ?…
- Record
GHSA-jhh7-832h-f8hv- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - Weakness
- CWE-204
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
wp-graphql/wp-graphqlPackagist |
through 2.6.0 | None known |
wp-graphql/wp-graphqlPackagist |
through 2.6.0, plus listed versions 0.0.20.0.200.0.210.0.220.0.23 Show 45 moreShow less0.0.240.0.250.0.260.0.270.0.280.0.290.0.30.0.300.0.310.0.51.2.21.27.2v0.0.10v0.0.11v0.0.12v0.0.13v0.0.14v0.0.15v0.0.16v0.0.17v0.0.18v0.0.19v0.0.32v0.0.33v0.0.34v0.0.6v0.0.7v0.0.8v0.0.9v0.1.0v0.1.1v0.1.2v0.1.3v0.1.4v0.10.0v0.10.1v0.10.2v0.10.3v0.11.0v0.12.0v0.12.1v0.12.2v0.12.3v0.13.0v0.13.1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-54768 is a medium vulnerability (CVSS 6.9) in Wp-graphql, published July 31, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.45%, the 38th percentile. No source names a fixed version.
References
github.com/wp-graphql/wp-graphql/security/advisories/GHSA-jhh7-832h-f8hv
github.com/wp-graphql/wp-graphql/releases/tag/wp-graphql/v2.15.1
github.com/advisories/GHSA-jhh7-832h-f8hv
github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54768.json
nvd.nist.gov/vuln/detail/CVE-2026-54768
github.com/wp-graphql/wp-graphql
Left out here: 189 versions and the rest of 2 source descriptions. The JSON record has them.