The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5167

CVE-2026-5167: Masteriyo LMS Auth Bypass Vulnerability

CVE-2026-5167 is an authorization bypass flaw in Masteriyo LMS for WordPress that allows attackers to access paid courses without payment by exploiting weak webhook verification. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 10, 2026

CVE-2026-5167 Overview

The Masteriyo LMS – Online Course Builder for eLearning, LMS & Education plugin for WordPress contains an Authorization Bypass Through User-Controlled Key vulnerability (CWE-639) in versions up to and including 2.1.7. This security flaw exists due to insufficient webhook signature verification in the handle_webhook() function, allowing unauthenticated attackers to manipulate order states and gain unauthorized access to paid course content.

Critical Impact

Unauthenticated attackers can send fake Stripe webhook events to mark any order as completed without payment, gaining unauthorized access to premium educational content and bypassing the payment system entirely.

Affected Products

  • Masteriyo LMS – Online Course Builder for eLearning, LMS & Education plugin for WordPress versions up to and including 2.1.7
  • WordPress sites using the Masteriyo LMS Stripe payment addon with default configuration
  • eLearning platforms relying on Masteriyo LMS for course monetization

Discovery Timeline

  • 2026-04-08 - CVE-2026-5167 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-5167

Vulnerability Analysis

This vulnerability represents a classic authorization bypass through improper webhook validation. The handle_webhook() function in the Stripe addon processes incoming webhook requests without proper authentication when default settings are in place. The webhook endpoint accepts unauthenticated requests and only performs signature verification under specific conditions—when both the webhook_secret setting is configured AND the HTTP_STRIPE_SIGNATURE header is present in the request.

The critical flaw lies in the default configuration: the webhook_secret defaults to an empty string. This means that even if an attacker omits the signature header entirely, the webhook endpoint will process the request without any verification. Attackers can craft malicious JSON payloads containing arbitrary order_id values in the metadata field, causing the system to mark orders as completed without any actual payment being processed.

Root Cause

The root cause is an insecure default configuration combined with flawed conditional logic in the signature verification process. Rather than requiring signature verification as a mandatory security control, the implementation treats it as optional—only enforcing it when both the secret is configured and the signature header is present. This "fail-open" design allows attackers to simply bypass the security check by ensuring one of these conditions is not met. The empty default value for webhook_secret makes this bypass trivially achievable on fresh installations.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending crafted HTTP POST requests to the WordPress site's webhook endpoint. The malicious request would contain a JSON payload mimicking legitimate Stripe webhook events (such as checkout.session.completed) with forged order metadata. Since the endpoint processes these requests without signature verification when using default settings, the attacker can manipulate order statuses at will.

The attack flow involves identifying target WordPress sites running Masteriyo LMS with the Stripe addon, crafting a webhook payload with a valid event type and target order ID, and submitting it to the webhook endpoint. The plugin then processes this as a legitimate payment completion, granting access to paid courses without any actual financial transaction occurring.

Detection Methods for CVE-2026-5167

Indicators of Compromise

  • Unexpected order status changes from "pending" to "completed" without corresponding Stripe dashboard transaction records
  • Webhook access logs showing requests without HTTP_STRIPE_SIGNATURE headers that resulted in successful order completions
  • User accounts with access to paid courses but no valid payment history in Stripe
  • Anomalous spikes in course enrollments without corresponding revenue

Detection Strategies

  • Monitor webhook endpoint access logs for requests lacking the Stripe-Signature HTTP header
  • Implement log correlation between WordPress order completions and Stripe transaction webhooks to identify discrepancies
  • Deploy web application firewall (WAF) rules to flag or block webhook requests without proper signature headers
  • Audit order completion events against Stripe API payment records on a regular basis

Monitoring Recommendations

  • Enable detailed logging for the Masteriyo LMS webhook endpoint to capture all incoming requests and their headers
  • Set up alerts for order status changes that occur via webhook without corresponding payment intent confirmations
  • Review the webhook_secret configuration to ensure it is properly set and matches the Stripe dashboard webhook signing secret
  • Implement real-time monitoring for unauthorized course access patterns

How to Mitigate CVE-2026-5167

Immediate Actions Required

  • Update Masteriyo LMS to the latest patched version immediately
  • Configure a strong webhook_secret in the Masteriyo LMS Stripe addon settings, matching the signing secret from your Stripe dashboard
  • Audit existing orders for any that may have been fraudulently marked as completed
  • Review course access logs to identify users who may have gained unauthorized access to paid content

Patch Information

A security patch has been released to address this vulnerability. The fix modifies the webhook signature verification logic to require proper authentication for all incoming webhook requests, regardless of default configuration state. The patch changeset can be reviewed at the WordPress Code Changeset. Additional technical details are available in the Wordfence Vulnerability Report.

Workarounds

  • Immediately configure the webhook_secret setting with the signing secret from your Stripe webhook configuration dashboard
  • Implement IP allowlisting to restrict webhook endpoint access to known Stripe IP addresses only
  • Add server-level middleware or .htaccess rules to reject webhook requests missing the Stripe-Signature header
  • Temporarily disable the Stripe payment addon if patching is not immediately possible, switching to an alternative payment method
bash
# Apache .htaccess workaround - block webhook requests without Stripe signature
# Add to your WordPress root .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} masteriyo/webhook [NC]
RewriteCond %{HTTP:Stripe-Signature} ^$
RewriteRule .* - [F,L]
</IfModule>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechMasteriyo

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • WordPress Stripe Addon Code

  • WordPress Stripe Addon Code

  • WordPress Stripe Addon Code

  • WordPress Stripe Addon Code

  • WordPress Code Changeset

  • Wordfence Vulnerability Report
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English