6.5Medium
CVE-2026-119702WPGraphQL before 2.24.1 Missing Authorization via createComment Mutation
Description
WPGraphQL before 2.24.1 contains a missing authorization vulnerability in the createComment mutation that allows unauthenticated attackers to comment on non-public posts by bypassing post status checks. Attackers can attach comments to draft, private, trashed, or password-protected posts to leak hidden titles via moderator notifications, enumerate post IDs, and backdate comments or mark them as pingbacks.
Weakness (CWE):
CWE-862
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
- GitHub Security Advisory (GHSA-4vgv-vvxr-9fh9) vendor-advisory
- https://github.com/wp-graphql/wp-graphql/commit/b9da32bd8e6025e19a9b04acaa129978eba71177 patch
- https://github.com/wp-graphql/wp-graphql/blob/wp-graphql/v2.24.0/plugins/wp-graphql/src/Mutation/CommentCreate.php technical-description
- WPGraphQL wp-graphql/v2.24.1 Release Notes release-notes
- https://github.com/wp-graphql/wp-graphql product
- VulnCheck Advisory: WPGraphQL before 2.24.1 Missing Authorization via createComment Mutation third-party-advisory