Skip to main content

WPGraphQL CVE-2026-54768

MEDIUM
Observable Response Discrepancy (CWE-204)
2026-07-31 https://github.com/wp-graphql/wp-graphql GHSA-jhh7-832h-f8hv
6.9
CVSS 4.0 · Vendor: https://github.com/wp-graphql/wp-graphql
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send unauthenticated POST to /graphql
  2. Delivery
    Include deprecated `user` field in sendPasswordResetEmail mutation
  3. Exploit
    Observe null vs populated User object in response
  4. Execution
    Confirm account existence for any username or email
  5. Persist
    Extract databaseId, name, firstName, lastName, slug, bio for author-class users
  6. Impact
    Use harvested data to target phishing or credential attacks

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V6 - Authentication Response uniformity
Exploitation Conditions

WPGraphQL must be installed and active on the WordPress site, and the GraphQL endpoint (default: /graphql) must be network-accessible - this is the standard default configuration for any site that has installed WPGraphQL. No authentication is required. Enumeration of user existence applies to any registered WordPress account whose username or email is supplied to the mutation. Full profile field disclosure (name, firstName, lastName, slug, bio, URI) is limited to author-class users - those who have published at least one post - because WordPress's User Model restricts unauthenticated field reads to users with a public authorship footprint. Subscriber-level accounts or users who have never published may not expose full profile data even if their existence is confirmed. There is no WPGraphQL-side rate limiting; WordPress core's own password reset throttling does not apply because the mutation triggers a real reset email for existing users, but there is no mechanism preventing rapid polling of the user field response. Sites that have already disabled the WordPress REST API user endpoint, the user XML sitemap, and ?author=N redirects remain vulnerable through this independent path.

Impact

No CVSS score was assigned by NVD or the vendor for this CVE, so risk must be derived from first principles. The attack vector is network, complexity is low, privileges are none, and no user interaction is required - metrics that would typically yield a CVSS 3.1 base score around 5.3 (Medium). The impact is limited to information disclosure with no integrity or availability consequence, which constrains severity despite the trivial exploitability. A public PoC is embedded in the GitHub advisory itself, which lowers the skill threshold to zero. There is no CISA KEV listing and no evidence of active exploitation at time of analysis. The realistic threat is reconnaissance enabling downstream attacks: credential stuffing, spearphishing using harvested profile data, or account takeover against targets whose other enumeration vectors (REST API, XML sitemaps, ?author=N redirects) have been blocked. Sites that believed they had closed all user enumeration paths are the most operationally impacted. The absence of WPGraphQL-level rate limiting means bulk enumeration of large user lists is feasible in a short time window.

Exploit ScenarioDerived

An attacker sends an unauthenticated HTTP POST to the WordPress GraphQL endpoint (typically https://target.com/graphql) with the published PoC mutation, supplying a target email address and requesting the deprecated user field. A null response confirms the email is not registered; a populated User object confirms the account exists and returns the user's full name, database ID, bio text, and profile URL. The attacker iterates this across a harvested email list, building a confirmed-valid target set for a subsequent phishing or credential stuffing campaign, with no WPGraphQL-level throttling to slow the enumeration.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 31, 2026

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.

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.

Affected Packages

composer wp-graphql/wp-graphql no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/wp-graphql/wp-graphql) PRIMARY 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
vuln.today AI 5.3 MEDIUM

Network-accessible unauthenticated GraphQL endpoint with no complexity; confidentiality impact is Low because only public profile metadata and account existence are disclosed, not credentials.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/wp-graphql/wp-graphql).

CVSS VectorVendor: https://github.com/wp-graphql/wp-graphql

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 31, 2026 - 23:22 NVD
6.9 (MEDIUM)

DescriptionCVE.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:

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:

php
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

graphql
mutation EnumerateUser {
  sendPasswordResetEmail(input: { username: "victim@example.com" }) {
    success
    user {
      databaseId
      name
      firstName
      lastName
      slug
      description
      uri
    }
  }
}

Behavior:

  • Non-existing user/email → data.sendPasswordResetEmail.user is null
  • - Existing author-class user → data.sendPasswordResetEmail.user is a full User object with the listed fields populated
  • - success always returns true, preserving the appearance of obfuscation - the deprecated user field is the leak

Impact

  1. Username/email enumeration: unauthenticated attacker can verify whether any username or email is registered, with no WPGraphQL-side rate limiting
  2. 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. 3. Bypasses partial hardening: sites that disabled the REST API user endpoint, the user XML sitemap, and ?author=N author redirects may still be vulnerable through this WPGraphQL path
  4. 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:

diff
'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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
popular WordPress plugin, not installed by default
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:composer/wp-graphql_wp-graphql

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy