Skip to main content

Rest Api To Miniprogram CVE-2026-3460

| EUVDEUVD-2026-14186 MEDIUM
Improper Input Validation (CWE-20)
2026-03-21 Wordfence GHSA-xxxv-phx4-9pvx
5.3
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Impact

The CVSS v3.1 score of 5.3 reflects a medium-severity vulnerability with a vector of AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N, indicating network accessibility, low attack complexity, low privileges required, and integrity impact without confidentiality or availability impact. The attack requires minimal effort and can be executed by any Subscriber-level user (the lowest authenticated role in WordPress), making the privilege requirement effectively low. While the CVSS score is moderate, the real-world risk is elevated due to several factors: the vulnerability is in a widely-deployed WordPress plugin ecosystem, requires only low-privilege authentication (achievable through open registration on many WordPress sites), can be automated at scale, and directly impacts user data integrity without detection mechanisms typical of more sophisticated attacks. The Wordfence reporting authority and reference to specific code paths (lines 216, 309, 924) indicate thorough analysis and probable proof-of-concept availability. The absence of noted technical complexity and the straightforward REST API exploitation vector suggest this is likely already being weaponized in the wild. Compared to high-CVSS-but-low-exploitability issues, this presents genuine practical risk because the exploitation barrier is extremely low: authentication is the only gate, and many WordPress installations have loose user registration policies.

Exploit ScenarioDerived

An attacker registers a free Subscriber-level account on a WordPress site running the vulnerable REST API TO MiniProgram plugin version 5.1.2 or earlier. The attacker then crafts a REST API request to the user metadata update endpoint, including their own valid openid (which passes the permission callback validation) but specifying a different userid parameter for a target administrator account. The REST API processes the request without verifying that the two identifiers belong to the same user, allowing the attacker to overwrite the administrator's storename, storeappid, and storeinfo fields. This could be used to redirect WeChat Mini Program orders to the attacker's account, impersonate the legitimate shop operator, or disrupt business operations. Such attacks can be performed programmatically at scale and logged only as REST API modifications from a legitimate authenticated user, making detection difficult without behavioral analysis of metadata changes.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 21, 2026

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.

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.

Affected VersionsENISA

REST API TO MiniProgram * ≤5.1.2

Affected Packages

euvd rest_api_to_miniprogram no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Rest Api To Miniprogram 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

NVD PRIMARY 5.3 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

DescriptionCVE.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.

Executive ViewAI

Why It Matters

Organizations using for WordPress is vulnerable to Insecure Direct Object Reference in all should be aware of moderate risk from CVE-2026-3460, a input validation vulnerability rated CVSS 5.3. Exploitation could compromise the security of affected deployments. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Low
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy