Description
The LearnPress – WordPress LMS Plugin for Create and Sell Online Courses plugin for WordPress is vulnerable to payment bypass through user-controlled key in all versions up to, and including, 4.3.5. This is due to improper handling of user-supplied request parameters in the REST API endpoint, which passes the unsanitized parameter array to the add_to_cart() function where array_merge() allows attacker-controlled values to overwrite hardcoded defaults. This makes it possible for authenticated attackers, with subscriber-level access and above, to enroll in any paid course entirely free of charge by supplying a quantity value of zero, which causes the order total to calculate as $0 and bypasses all payment gateway requirements.
References8
- plugins.trac.wordpress.org/browser/learnpress/tags/4.3.3/inc/ca…
- plugins.trac.wordpress.org/browser/learnpress/tags/4.3.3/inc/ca…
- plugins.trac.wordpress.org/browser/learnpress/tags/4.3.3/inc/re…
- plugins.trac.wordpress.org/browser/learnpress/trunk/inc/cart/cl…
- plugins.trac.wordpress.org/browser/learnpress/trunk/inc/cart/cl…
- plugins.trac.wordpress.org/browser/learnpress/trunk/inc/rest-ap…
- plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&repo…
- www.wordfence.com/threat-intel/vulnerabilities/id/564ec4a6-20d3…
Metrics
- CVSS 3.1
-
4.3
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - EPSS — exploit probability
- 0% percentile: 37 · as of 14 November 2026
- CWE
- CWE-639
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.