CVE-2026-5167: Masteriyo LMS <= 2.1.7 - Unauthenticated Authorization Bypass to Arbitrary Order Completion via Stripe Webhook Endpoint
The Masteriyo LMS – Online Course Builder for eLearning, LMS & Education plugin for WordPress is vulnerable to Authorization Bypass Through User-Controlled Key in versions up to and including 2.1.7. This is due to insufficient webhook signature verification in the handlewebhook() function. The webhook endpoint processes unauthenticated requests and only performs signature verification if both the webhooksecret setting is configured AND the HTTPSTRIPESIGNATURE header is present. Since webhooksecret defaults to an empty string, the webhook processes attacker-controlled JSON payloads without any verification. This makes it possible for unauthenticated attackers to send fake Stripe webhook events with arbitrary orderid values in the metadata, mark any order as completed without payment, and gain unauthorized access to paid course content.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5167?
CVE-2026-5167 is classified as a high severity vulnerability due to its potential for unauthorized actions.
How do I fix CVE-2026-5167?
To fix CVE-2026-5167, upgrade to Masteriyo LMS version 2.1.8 or later.
What type of attack does CVE-2026-5167 facilitate?
CVE-2026-5167 facilitates an unauthorized authorization bypass that can lead to arbitrary order completion.
Who is affected by CVE-2026-5167?
CVE-2026-5167 affects users of Masteriyo LMS versions up to and including 2.1.7.
What is the exploitation vector for CVE-2026-5167?
The exploitation vector for CVE-2026-5167 is through the Stripe webhook endpoint.