Learnpress Wordpress Lms Plugin For Create And Sell Online Courses
CVE-2026-4333
|
EUVD-2026-20045
MEDIUM
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Primary rating from Vendor (Wordfence) · only source for this CVE.
CVSS VectorVendor: Wordfence
Lifecycle Timeline
3DescriptionCVE.org
The LearnPress - WordPress LMS Plugin plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'skin' attribute of the learn_press_courses shortcode in all versions up to and including 4.3.3. This is due to insufficient input sanitization and output escaping on the 'skin' shortcode attribute. The attribute value is used directly in an sprintf() call that generates HTML (class attribute and data-layout attribute) without any esc_attr() escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
AnalysisAI
Stored Cross-Site Scripting in LearnPress WordPress LMS Plugin up to version 4.3.3 allows authenticated contributors to inject malicious scripts via the 'skin' attribute of the learn_press_courses shortcode, which lacks proper output escaping. The injected scripts execute whenever any user visits a page containing the malicious shortcode, affecting all sites using vulnerable versions. No evidence of active exploitation exists at time of analysis.
Technical ContextAI
The vulnerability resides in the learn_press_courses shortcode handler (ListCoursesShortcode.php), specifically in how the 'skin' attribute parameter is processed. The plugin uses the unsanitized attribute value directly within sprintf() calls to generate HTML class and data-layout attributes without applying WordPress escaping functions like esc_attr(). This represents a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) flaw where user-controlled input flows directly into HTML output context. The root cause is the absence of both input validation and context-aware output escaping; the 'skin' parameter should be validated against a whitelist of allowed values and escaped with esc_attr() before being inserted into HTML attributes.
RemediationAI
Update LearnPress to the patched version released after 4.3.3 (exact version number not specified in available data; check the WordPress plugin repository or ThimPress advisory for the specific release). The fix involves adding esc_attr() escaping around the 'skin' attribute value before it is inserted into HTML attributes within the sprintf() calls in ListCoursesShortcode.php. As a temporary workaround pending patching, WordPress administrators can restrict Contributor-level access to users who genuinely require it, and use role-based access control plugins to limit shortcode usage. Review existing pages and posts for any suspicious shortcode parameters that may indicate prior exploitation. Refer to the Wordfence vulnerability database entry (https://www.wordfence.com/threat-intel/vulnerabilities/id/15fb0a26-e415-4ccb-b83d-d8f7b36bce66) and WordPress plugin repository for official guidance.
Unauthenticated data deletion in LearnPress WordPress LMS plugin (versions ≤4.3.2.8) allows remote attackers to delete a
Sensitive information exposure in the LearnPress LMS plugin for WordPress (versions up to and including 4.4.1) lets unau
Course enrollment data exposure in LearnPress WordPress LMS plugin (all versions through 4.3.9.1) enables authenticated
Stored cross-site scripting in LearnPress - WordPress LMS Plugin versions through 4.3.9.1 allows authenticated contribut
Stored Cross-Site Scripting in the LearnPress WordPress LMS plugin (versions up to and including 4.4.0) allows authentic
Sensitive information exposure in LearnPress WordPress LMS Plugin (all versions through 4.3.6) allows unauthenticated re
SQL injection in the LearnPress WordPress LMS plugin (versions ≤ 4.4.4) allows authenticated administrators to extract a
Unauthorized option-write in LearnPress (WordPress LMS plugin) versions up to and including 4.4.4 allows authenticated a
The LearnPress WordPress LMS Plugin contains a missing capability check vulnerability in the delete_question_answer() fu
Payment bypass in LearnPress WordPress LMS Plugin (all versions ≤ 4.3.5) allows authenticated subscribers to enroll in a
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-7fvw-v44w-rxj9