# WPGraphQL <= 2.24.1 - Unauthenticated Sensitive Information Exposure via User, Post and Term Mutation Error Messages

- **ID:** WPSEC-2026-1157
- **Plugin:** WPGraphQL (`wp-graphql`), https://wordpress.org/plugins/wp-graphql/
- **Affected versions:** all versions before 2.24.2
- **Fixed in:** 2.24.2 (Update to 2.24.2 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N)
- **Weakness:** CWE-203
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-10-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-graphql
- **Fix released:** 2026-10-16
- **Published:** 2026-10-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1157/

## Description

The WPGraphQL plugin for WordPress is vulnerable to Sensitive Information Exposure via the updateUser, post object update, and term object update and delete mutations in all versions up to, and including, 2.24.1, due to the target object being looked up, and distinct not-found or wrong-type errors being returned, before any capability check. This makes it possible for unauthenticated attackers to enumerate which user, post and term IDs exist, including draft, private and trashed posts and their post types.

## References

- https://wpsec.com/vuln/WPSEC-2026-1157/
- https://plugins.svn.wordpress.org/wp-graphql/tags/2.24.2/
- https://wordpress.org/plugins/wp-graphql/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1157/

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.
