Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Lifecycle Timeline
3DescriptionCVE.org
The REST API TO MiniProgram plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 5.1.2. This is due to the permission callback (update_user_wechatshop_info_permissions_check) only validating that the supplied 'openid' parameter corresponds to an existing WordPress user, while the callback function (update_user_wechatshop_info) uses a separate, attacker-controlled 'userid' parameter to determine which user's metadata gets modified, with no verification that the 'openid' and 'userid' belong to the same user. This makes it possible for authenticated attackers, with Subscriber-level access and above, to modify arbitrary users' store-related metadata (storeinfo, storeappid, storename) via the 'userid' REST API parameter.
AnalysisAI
The REST API TO MiniProgram plugin for WordPress contains an Insecure Direct Object Reference (IDOR) vulnerability that allows authenticated attackers with Subscriber-level access to modify arbitrary users' WeChat shop metadata by exploiting a permission validation flaw. The vulnerability affects all versions up to and including 5.1.2, where the permission callback validates one parameter (openid) but the actual modification function uses a different attacker-controlled parameter (userid) without cross-validation. Attackers can exploit this via the REST API to alter storeinfo, storeappid, and storename fields for any user account, potentially disrupting store operations or impersonating legitimate shop owners.
Technical ContextAI
The vulnerability resides in the REST API endpoint implementation of the REST API TO MiniProgram plugin (CPE: cpe:2.3:a:xjb:rest_api_to_miniprogram:*:*:*:*:*:*:*:*), specifically in the ram-rest-weixin-controller.php file. The flaw is rooted in CWE-20 (Improper Input Validation) and manifests as a classic authorization bypass pattern where two separate user identifiers are used inconsistently across the authentication and execution layers. The permission callback function update_user_wechatshop_info_permissions_check validates that the openid parameter corresponds to a valid WordPress user, establishing authentication context. However, the callback function update_user_wechatshop_info processes a separate userid parameter sourced directly from user input without verifying that the openid and userid belong to the same user account. This decoupling of validation logic from execution logic, combined with the REST API's parameter handling in WordPress, creates an IDOR condition where any authenticated user can manipulate the userid parameter to target arbitrary user accounts.
RemediationAI
Upgrade the REST API TO MiniProgram plugin to a version newer than 5.1.2 as soon as a patched release is available from the plugin developer; monitor the official WordPress plugin repository for security updates. The immediate fix involves modifying the permission callback to validate that both the openid and userid parameters correspond to the same user account before processing any metadata modifications, ensuring that authenticated users cannot modify other users' data. Until a patch is available, implement temporary mitigations: restrict REST API access to authenticated users only via server-level rules (disable anonymous REST API access if not required), implement IP-based access controls to limit who can access REST API endpoints, disable user registration if not actively required to reduce the number of potential attackers, and audit user metadata via direct database queries to detect unauthorized modifications to storeinfo, storeappid, or storename fields. Additionally, consider temporarily disabling the REST API endpoints for WeChat shop metadata if they are not actively in use, using must-use plugins or .htaccess rules to block requests to the affected endpoints. Reference the Wordfence vulnerability advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/7129d8cf-6b7d-4b7b-bd6a-85176247ab29?source=cve for additional details and monitoring recommendations.
The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete
Same weakness CWE-20 – Improper Input Validation
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-14186
GHSA-xxxv-phx4-9pvx