# LearnPress <= 4.5.0 - Authenticated (Subscriber+) Payment Bypass via PayPal Capture

- **ID:** WPSEC-2026-4466
- **Plugin:** LearnPress – WordPress LMS Plugin for Create and Sell Online Courses (`learnpress`), https://wordpress.org/plugins/learnpress/
- **Affected versions:** from 4.2.4 before 4.5.1
- **Fixed in:** 4.5.1 (Update to 4.5.1 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N)
- **Weakness:** CWE-345
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/learnpress
- **Fix released:** 2026-12-02
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4466/

## Description

The LearnPress plugin for WordPress is vulnerable to Payment Bypass via the PayPal payment capture (the PayPal return URL handler and the learnpress/v1/checkout/paypal/capture REST endpoint) in versions 4.2.4 up to, and including, 4.5.0. This is due to the plugin picking the LearnPress order from the custom_id value of the captured PayPal order, without checking that it created that PayPal order for that LearnPress order or that the captured amount and currency match the order total. This makes it possible for authenticated attackers, with Subscriber-level access and above, to pay a PayPal order for a lower amount and have a more expensive LearnPress order marked as completed. This gives them access to paid courses without paying the full price.

## References

- https://wpsec.com/vuln/WPSEC-2026-4466/
- https://plugins.svn.wordpress.org/learnpress/tags/4.5.1/
- https://wordpress.org/plugins/learnpress/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-4466/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
