Skip to main content
Vulnerability Database/CVE-2026-109208

CVE-2026-109208: LearnPress WordPress LMS Plugin XSS Vulnerability

CVE-2026-109208 is a stored XSS flaw in LearnPress WordPress LMS Plugin allowing unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, impact analysis, and mitigation steps.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109208 Overview

CVE-2026-109208 is a stored Cross-Site Scripting (XSS) vulnerability in the LearnPress – WordPress LMS Plugin for Create and Sell Online Courses. The flaw affects all versions up to and including 4.4.10 and stems from insufficient input sanitization and output escaping in the quantity REST parameter and the order_comments checkout parameter. Attackers can inject arbitrary JavaScript that executes when a user, including administrators, views the affected pages. When guest checkout is enabled, exploitation requires no authentication. When guest checkout is disabled, any Subscriber-level user can trigger either vector through their own checkout flow.

Critical Impact

Unauthenticated attackers can store JavaScript payloads that execute in authenticated administrator sessions, enabling session theft, account takeover, and backend defacement across LearnPress-powered WordPress sites.

Affected Products

  • LearnPress – WordPress LMS Plugin versions <= 4.4.10
  • WordPress sites with LearnPress guest checkout enabled (unauthenticated attack surface)
  • WordPress sites with Subscriber-level registration enabled (authenticated attack surface)

Discovery Timeline

  • 2026-10-17 - CVE-2026-109208 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-109208

Vulnerability Analysis

The vulnerability is a stored XSS flaw categorized under CWE-79. LearnPress accepts user-controlled input through two paths that persist to the WordPress database. The first path is the quantity field handled by the REST courses controller at inc/rest-api/v1/frontend/class-lp-rest-courses-controller.php. The second is the order_comments field submitted during checkout and handled by inc/class-lp-checkout.php.

Stored values are later rendered in administrative order views, including the order details page, the invoice preview, and the refund-order JavaScript handler. Because the input is neither sanitized on entry nor escaped on output, injected scripts execute in the browser context of any user who loads the affected admin page. An administrator viewing a malicious order triggers execution with administrator privileges.

Root Cause

The root cause is missing input sanitization in the cart and checkout code paths and missing output escaping in the admin rendering templates. LearnPress treats both quantity and order_comments as trusted data, writing them to order metadata and echoing them into HTML and JavaScript contexts without applying WordPress helpers such as sanitize_text_field(), wp_kses_post(), esc_html(), or esc_attr().

Attack Vector

An attacker initiates a checkout for any LearnPress course. In the order_comments field or in a crafted REST request setting the quantity parameter, the attacker supplies an HTML payload containing a <script> tag or an event-handler attribute. LearnPress persists the payload to the order record. When a site administrator opens the order in the WordPress dashboard, the browser parses the stored payload and executes the injected JavaScript in the administrator's authenticated session. See the Wordfence Vulnerability Intelligence Report and the vulnerable code locations in the LearnPress Checkout Class Method and LearnPress Order Details View.

Detection Methods for CVE-2026-109208

Indicators of Compromise

  • WordPress order records in the wp_postmeta table containing <script>, onerror=, onload=, or javascript: strings in LearnPress order metadata
  • Unexpected administrator account creation or role changes shortly after a LearnPress order was viewed in the admin dashboard
  • Outbound requests from administrator browsers to unfamiliar domains immediately after loading edit.php?post_type=lp_order pages
  • LearnPress checkout submissions from anonymous or newly registered Subscriber accounts containing HTML-encoded or raw script fragments in order_comments

Detection Strategies

  • Inspect LearnPress order metadata and comment fields for HTML tags, event-handler attributes, and encoded script content
  • Review web server access logs for POST requests to /wp-json/lp/v1/courses/ and the LearnPress checkout endpoint with suspicious quantity or order_comments payloads
  • Correlate newly created wp_users rows with recent administrator sessions that loaded a LearnPress order view

Monitoring Recommendations

  • Enable WordPress audit logging for user creation, role elevation, and plugin or theme file modifications
  • Alert on administrator-initiated HTTP requests originating from the /wp-admin/ referer that target unexpected external hosts
  • Monitor LearnPress plugin version strings across managed sites and flag any site still running <= 4.4.10

How to Mitigate CVE-2026-109208

Immediate Actions Required

  • Update the LearnPress plugin to the version released in the LearnPress Changeset Overview that supersedes 4.4.10
  • Disable guest checkout in LearnPress settings until the plugin is patched to remove the unauthenticated attack surface
  • Audit existing LearnPress orders for stored script payloads and purge any malicious entries from wp_postmeta
  • Rotate credentials and sessions for any administrator who viewed LearnPress order pages while the site was vulnerable

Patch Information

The LearnPress development team addressed the issue in the changeset tracked at the LearnPress Changeset Overview. The patch adds input sanitization on the quantity and order_comments parameters and applies output escaping in the admin order views and refund-order JavaScript. Site operators should update through the WordPress plugin manager or by replacing the plugin directory with the fixed release.

Workarounds

  • Disable the LearnPress plugin entirely until the patched version can be deployed
  • Restrict new user registration and set the default role to a non-privileged value to limit authenticated exploitation
  • Deploy a Web Application Firewall rule that blocks requests containing <script, onerror=, or javascript: in LearnPress REST and checkout parameters
  • Require administrators to review LearnPress orders only in a sandboxed browser profile until patching is complete
bash
# Example WP-CLI commands to update LearnPress and audit orders
wp plugin update learnpress
wp plugin get learnpress --field=version
wp db query "SELECT post_id, meta_key, meta_value FROM wp_postmeta \
  WHERE meta_value LIKE '%<script%' OR meta_value LIKE '%onerror=%';"

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.