WPGraphQL CVE-2026-54768
MEDIUMSeverity by source
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
Network-accessible unauthenticated GraphQL endpoint with no complexity; confidentiality impact is Low because only public profile metadata and account existence are disclosed, not credentials.
Primary rating from Vendor (https://github.com/wp-graphql/wp-graphql).
CVSS VectorVendor: https://github.com/wp-graphql/wp-graphql
Lifecycle Timeline
3DescriptionCVE.org
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: "victim@example.com" }) {
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 - -
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
- 2. 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 - 3. 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 - 4. 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']) ? $context->get_loader('user')->load_deferred($payload['id']) : null;
- + // Always null - this deprecated field previously leaked user existence,
- + // undermining the anti-enumeration design of the sendPasswordResetEmail mutation.
- + return null;
- },
- ```
Defense in depth - change the mutation resolver itself to not populate `$payload['id']` on real success:
return [
- 'id' => $user_data->ID,
- + 'id' => null,
- 'success' => true,
- ];
`
Luke Granto - independent security researcher operating in good faith. Discovery via source code review of wp-graphql/wp-graphql v2.14.1, approximately 15 minutes from git clone to confirmed bug. No live exploitation against any third-party deployment.
AnalysisAI
User enumeration and profile disclosure in WPGraphQL 2.x through 2.14.1 completely undermines the plugin's own anti-enumeration design via a deprecated GraphQL field that was never removed. An unauthenticated attacker can invoke the sendPasswordResetEmail mutation and include the deprecated user sub-field: a null response indicates the email or username does not exist, while a populated User object confirms existence and additionally leaks databaseId, full name, slug, bio, and profile URI for author-class users. A detailed proof-of-concept GraphQL mutation is published in advisory GHSA-jhh7-832h-f8hv, and no rate limiting exists at the WPGraphQL layer. No active exploitation has been confirmed by CISA KEV, though the barrier to exploitation is trivially low.
Technical ContextAI
WPGraphQL (composer package wp-graphql/wp-graphql) exposes a GraphQL API for WordPress sites. The vulnerability is a textbook CWE-204 (Observable Response Discrepancy): the sendPasswordResetEmail mutation deliberately obfuscates success/failure to prevent enumeration by always returning success: true, but src/Deprecated.php registers a legacy user field on the same SendPasswordResetEmailPayload output type that was never cleaned up despite a @todo remove in 3.0.0 annotation. Internally, the mutation resolver populates $payload['id'] only when a matching user record is found; the deprecated field resolver then reads this internal key and passes it to the WordPress user loader. WordPress's User Model allowed_restricted_fields policy permits unauthenticated reads of public author profile fields (databaseId, name, firstName, lastName, slug, description, uri, url), so the discrepancy is directly observable in the GraphQL JSON response without any authentication.
RemediationAI
Upstream fix available in WPGraphQL v2.15.1, referenced in advisory GHSA-jhh7-832h-f8hv at https://github.com/wp-graphql/wp-graphql/releases/tag/wp-graphql/v2.15.1; sites should upgrade immediately via composer update wp-graphql/wp-graphql or through the WordPress plugin updater. Note that the package vulnerability metadata states no fixed version, which may indicate the 2.15.1 release postdates the metadata entry - verify the release notes confirm removal of the deprecated user field before treating the upgrade as fully remediated. If an immediate upgrade is not possible, the most targeted compensating control is to modify src/Deprecated.php locally so the user field resolver unconditionally returns null; this eliminates the information leak without affecting password reset functionality, though it must be reapplied after each plugin update. Alternatively, blocking the /graphql endpoint at the WAF for unauthenticated requests mitigates this and other potential GraphQL information disclosure issues, at the cost of breaking any unauthenticated public GraphQL queries the application relies on.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-204 – Observable Response Discrepancy
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-jhh7-832h-f8hv