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.
References5
- plugins.trac.wordpress.org/browser/wpdm-premium-packages/tags/6…
- plugins.trac.wordpress.org/browser/wpdm-premium-packages/tags/6…
- plugins.trac.wordpress.org/browser/wpdm-premium-packages/tags/6…
- plugins.trac.wordpress.org/changeset/3595291/wpdm-premium-packa…
- www.wordfence.com/threat-intel/vulnerabilities/id/b288386c-709c…
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - EPSS — exploit probability
- 2% percentile: 76 · as of 13 November 2026
- CWE
- CWE-89
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.