PHP
CVE-2026-33290
MEDIUM
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents a low but real real-world exploitation risk, with several converging but contradictory signals. The CVSS 3.1 vector (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N) indicates network-accessible attack with low complexity and low privilege requirements (PR:L), but integrity impact is limited (I:L) and there is no confidentiality or availability impact. The EPSS score of 0.03% (7th percentile) suggests statistically low exploitation probability, indicating this is not a widespread exploitation target in the wild. However, this EPSS percentile conflicts somewhat with the attack profile: the attack is fully automatable (UI:N), requires no special network conditions (AC:L), and targets a specific application pattern (WordPress sites running WPGraphQL with comment functionality and low-privileged users). The vulnerability is not listed in CISA KEV, confirming no confirmed active exploitation has been observed. A functional proof-of-concept exists (provided in advisory), meaning the technical barrier to exploitation is minimal for motivated attackers. The real risk depends on deployment specifics: sites where low-privileged users can post comments (common in public WordPress installations) are significantly more at risk than enterprise deployments with restricted comment access. For most organizations, this is a moderate-priority patch rather than critical due to the EPSS signal and limited scope (comment moderation only), but it should be prioritized for any WordPress site actively accepting public comments. |
| Exploit ScenarioDerived | An attacker creates a low-privileged WordPress account (or leverages an existing account with a custom role containing zero capabilities) and submits a comment to a public post. The comment is automatically set to pending moderation (comment_approved = 0). The attacker then uses the WPGraphQL updateComment mutation with status:APPROVE to directly transition their own comment to approved status, bypassing the WordPress moderation queue that would normally require a user with moderate_comments capability to review and approve. The comment immediately becomes visible to site visitors without human review, allowing injection of spam, promotional content, or other policy-violating material. A functional proof-of-concept leveraging wp-env and Docker has been published, demonstrating the attack requires only valid credentials and knowledge of a comment ID. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 24, 2026
WPGraphQL prior to version 2.10.0 allows authenticated low-privileged users to bypass comment moderation controls and self-approve their own comments without possessing the moderate_comments capability. The vulnerability exploits owner-based authorization logic in the updateComment mutation, enabling non-moderator users to transition comment status to APPROVE, HOLD, SPAM, or TRASH states directly. A proof-of-concept demonstrating this authorization bypass in WPGraphQL 2.9.1 has been published, and while the EPSS score of 0.03% indicates low statistical likelihood of exploitation, the attack vector is network-based with low complexity and requires only low-level user privileges (including custom roles with zero capabilities).
RemediationAI
Upgrade WPGraphQL to version 2.10.0 or later immediately. The patch is available in the vendor's official release at https://github.com/wp-graphql/wp-graphql/releases/tag/wp-graphql%2Fv2.10.0. Until patching is completed, mitigate by restricting comment submission permissions to authenticated users with explicit moderation capabilities, disabling the updateComment GraphQL mutation via a site-wide GraphQL schema filter, or implementing WordPress user role restrictions that prevent low-privileged roles from creating comments on public-facing content. Additionally, audit existing comments by low-privileged users (particularly those in pending status) to identify any that may have been self-approved prior to patching.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WPGraphQL (cpe:2.3:a:wp-graphql:wp-graphql) is a GraphQL API layer for WordPress that exposes WordPress functionality via GraphQL mutations. The vulnerability resides in the updateComment mutation implementation spanning multiple files: CommentUpdate.php (authorization check at lines 92 and 99), CommentMutation.php (direct GraphQL-to-WordPress field mapping at line 94), and CommentStatusEnum.php (exposure of moderation state constants). The root cause is CWE-862 (Missing Authorization), where the authorization logic incorrectly permits comment owners to modify the status field regardless of their WordPress capabilities. The flaw occurs because authorization is performed at the object level (checking if user is the comment owner) rather than the field level (checking if user has moderate_comments capability before allowing status mutations). This allows direct mutation of the comment_approved field via GraphQL input, which is then persisted to the WordPress database through wp_update_comment without re-validation of the user's moderation rights.
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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
DescriptionGitHub Advisory
WPGraphQL provides a GraphQL API for WordPress sites. Prior to version 2.10.0, an authorization flaw in updateComment allows an authenticated low-privileged user (including a custom role with zero capabilities) to change moderation status of their own comment (for example to APPROVE) without the moderate_comments capability. This can bypass moderation workflows and let untrusted users self-approve content. Version 2.10.0 contains a patch.
Details
In WPGraphQL 2.9.1 (tested), authorization for updateComment is owner-based, not field-based:
- plugins/wp-graphql/src/Mutation/CommentUpdate.php:92 allows moderators.
- plugins/wp-graphql/src/Mutation/CommentUpdate.php:99:99 also allows the comment owner, even if they lack moderation capability.
- plugins/wp-graphql/src/Data/CommentMutation.php:94:94 maps GraphQL input status directly to WordPress comment_approved.
- plugins/wp-graphql/src/Mutation/CommentUpdate.php:120:120 persists that value via wp_update_comment.
- plugins/wp-graphql/src/Type/Enum/CommentStatusEnum.php:22:22 exposes moderation states (APPROVE, HOLD, SPAM, TRASH).
This means a non-moderator owner can submit status during update and transition moderation state.
PoC
Tested in local wp-env (Docker) with WPGraphQL 2.9.1.
- Start environment:
npm install npm run wp-env start
- Run this PoC:
npm run wp-env run cli -- wp eval '
add_role("no_caps","No Caps",[]);
$user_id = username_exists("poc_nocaps");
if ( ! $user_id ) {
$user_id = wp_create_user("poc_nocaps","Passw0rd!","poc_nocaps@example.com");
}
$user = get_user_by("id",$user_id);
$user->set_role("no_caps");
$post_id = wp_insert_post([
"post_title" => "PoC post",
"post_status" => "publish",
"post_type" => "post",
"comment_status" => "open",
]);
$comment_id = wp_insert_comment([
"comment_post_ID" => $post_id,
"comment_content" => "pending comment",
"user_id" => $user_id,
"comment_author" => $user->display_name,
"comment_author_email" => $user->user_email,
"comment_approved" => "0",
]);
wp_set_current_user($user_id);
$result = graphql([
"query" => "mutation U(\$id:ID!){ updateComment(input:{id:\$id,status:APPROVE}){ success comment{ databaseId status } } }",
"variables" => [ "id" => (string)$comment_id ],
]);
echo wp_json_encode([
"role_caps" => array_keys(array_filter((array)$user->allcaps)),
"status" => $result["data"]["updateComment"]["comment"]["status"] ?? null,
"db_comment_approved" => get_comment($comment_id)->comment_approved ?? null,
"comment_id" => $comment_id
]);
'- Observe result:
- role_caps is empty (or no moderate_comments)
- mutation returns status: APPROVE
- DB value becomes comment_approved = 1
Impact
This is an authorization bypass / broken access control issue in comment moderation state transitions. Any deployment using WPGraphQL comment mutations where low-privileged users can make comments is impacted. Moderation policy can be bypassed by self-approving content.
Executive ViewAI
CVE-2026-33290 presents moderate security risk, a missing authorization vulnerability rated CVSS 4.3. Attackers could gain access beyond their authorized level. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: restrict network access and enable monitoring.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)GitHub Advisory
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB