Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. wp-graphql/wp-graphql
  4. ›
  5. CVE-2026-54768

CVE-2026-54768: WPGraphQL has deprecated `user` field on SendPasswordResetEmailPayload that leaks user existence + profile (defeats explicit anti-enumeration design)

July 31, 2026

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.

References

  • github.com/advisories/GHSA-jhh7-832h-f8hv
  • github.com/wp-graphql/wp-graphql/releases/tag/wp-graphql/v2.15.1
  • github.com/wp-graphql/wp-graphql/security/advisories/GHSA-jhh7-832h-f8hv
  • nvd.nist.gov/vuln/detail/CVE-2026-54768

Code Behaviors & Features

Detect and mitigate CVE-2026-54768 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.6.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-204: Observable Response Discrepancy

Source file

packagist/wp-graphql/wp-graphql/CVE-2026-54768.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 16 Aug 2026 12:17:25 +0000.