Premium Packages exposes an unauthenticated coupon SQL injection
Premium Packages through 6.2.0 registers POST /wp-json/wpdmpp/v1/cart/coupon with permission_callback set to __return_true. MiniCartAPI::applyCoupon() accepts the attacker-controlled code parameter and passes it through CouponCodes::validate_coupon() to CouponCodes::find(), which interpolates it directly into a SELECT query without $wpdb->prepare(). An unauthenticated attacker can alter the query and extract sensitive database information. The CNA record does not identify the specific database contents obtainable.
- Component
- Premium Packages – Sell Digital Products Securely
- Plugin slug
wpdm-premium-packages- Affected
- <= 6.2.0
- Safe version
7.0.0- Published
- Jul 28, 2026
This CVE was published Jul 28, 2026 and is one of 12 known issues for this plugin.
Update, patch or deactivate.
Update Premium Packages to 7.0.0 or later. Version 7.0.0 is the first official release after the affected 6.2.0 boundary and replaces the cited implementation, although its changelog only describes broad security hardening rather than this CVE specifically. Review requests to /wp-json/wpdmpp/v1/cart/coupon for unusual code values and investigate possible database disclosure.
A safe version is available, so updating to that version or later is the preferred remediation. If an immediate update is not practical, consider a targeted application patch or temporarily restricting the affected functionality.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical description
The Premium Packages – Sell Digital Products Securely plugin for WordPress is vulnerable to SQL Injection via the 'code' parameter of the POST /wp-json/wpdmpp/v1/cart/coupon REST API endpoint in versions up to, and including, 6.2.0. This is due to insufficient escaping on the user-supplied parameter, which is interpolated directly into a raw SQL query string in the CouponCodes::find() method without use of $wpdb->prepare() or esc_sql(). This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
CVE / CNA vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N