WPGraphQL Content Blocks data exposure in editorBlocks queries
wpengine wp-graphql-content-blocks
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| wpengine wp-graphql-content-blocks |
| No fix yet |
Original description
WPGraphQL Content Blocks is a WordPress plugin that extends WPGraphQL to support querying Gutenberg blocks as data. Prior to 4.8.6, the editorBlocks renderedHtml field in includes/Data/ContentBlocksResolver.php uses resolve_content_blocks() to read a post with get_post() without applying post_password_required(). An unauthenticated caller who knows a supported post identifier can therefore retrieve the complete body of a password-protected published post without a post password, nonce, or valid cookie, exposing paid, member-only, preview, or internal content. This issue is fixed in version 4.8.6.
From the CVE record · GitHub_M