Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious search URL
-
DeliverySends link to victim via phishing or forum
-
ExploitVictim clicks link
-
InstallMahara Elasticsearch7 plugin processes unsanitized query
-
C2XSS payload reflected in search results HTML
-
ExecuteVictim's browser executes injected script
-
ImpactAttacker steals session cookie or performs unauthorized action
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 | The Elasticsearch7 search plugin must be explicitly enabled and configured as the active search backend in Mahara. The search results page must be accessible to unauthenticated users (or the attacker must be authenticated to access search). The vulnerability requires user interaction - specifically, a victim must click or be redirected to a crafted search URL containing the malicious payload. If Elasticsearch7 is not deployed, or if search functionality is disabled or behind authentication barriers, the vulnerability is not exploitable. Additionally, if a modern Content Security Policy is deployed at the web server or reverse proxy level with restrictive script-src settings, the script injection may be blocked at execution time, though the XSS injection flaw itself would still exist. |
| Impact | The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) indicates moderate risk: network-accessible, low attack complexity, no privilege required, but crucially dependent on user interaction (UI:R - requires a victim to click a malicious search link). The scope change (S:C) means the vulnerability can affect resources beyond the vulnerable component, consistent with XSS leading to session hijacking or credential theft. EPSS data is not provided, but SSVC assessment (Exploitation: none, Automatable: no, Technical Impact: partial) aligns with typical XSS prioritization - not immediately automatable for broad attacks, and impact limited to partial (confidentiality/integrity, no availability). The real-world risk depends heavily on deployment context: if Mahara instances are internet-facing and Elasticsearch7 is the configured search backend, the attack surface is significant; if search is behind authentication or disabled, risk is lower. The absence of KEV listing and public exploit code suggests this is not yet widely weaponized, though XSS is a mature attack class with straightforward proof-of-concept generation. Defender concern should focus on whether the Elasticsearch7 plugin is in use and whether search results are accessible to unauthenticated users. |
| Exploit ScenarioDerived | An attacker crafts a malicious search URL containing JavaScript payloads in the query parameter (e.g., /search?q=<script>alert('xss')</script>) and sends it to Mahara users via phishing email, forum post, or direct link. When a user clicks the link, the Mahara instance renders the search results page with the attacker's script embedded in the HTML response, executing in the user's browser context. The script could steal session cookies, redirect to a credential-harvesting page, or perform actions on behalf of the logged-in user (if authenticated) without further interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 24, 2026
Stored cross-site scripting (XSS) in Mahara before 25.04.2 and 24.04.11 allows unauthenticated remote attackers to inject malicious JavaScript via unsanitized search query parameters in the 'search site' feature when the Elasticsearch7 search plugin is enabled. The vulnerability has a CVSS score of 6.1 (moderate) with network attack vector and user interaction required (clicking a crafted search link), resulting in partial confidentiality and integrity impact. No active exploitation has been confirmed by CISA KEV, and no public exploit code is documented at the time of analysis.
RemediationAI
Upgrade Mahara to version 25.04.2 or later for the current 25.x branch, or to version 24.04.11 or later for the 24.04.x branch. Both patches remediate the input sanitization flaw in the Elasticsearch7 search plugin. If immediate patching is not feasible, disable the Elasticsearch7 search plugin and revert to Mahara's default search backend (typically database-driven search) to eliminate the attack surface; note that this may impact search performance on large instances. Additionally, implement a Content Security Policy (CSP) header with script-src restrictions to mitigate the impact of any unpatched XSS, though CSP alone does not prevent the vulnerability. Apply vendor patches as soon as available via https://mahara.org and verify the patched version is deployed across all instances. For users on unsupported versions, upgrading to a maintained release branch is mandatory.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mahara's search functionality integrates with the Elasticsearch7 search plugin to process user-supplied search queries. The vulnerability exists in the query parameter handling within the Elasticsearch search backend, which fails to properly encode or sanitize user input before rendering search results in the HTML response. This is a classic reflected or stored XSS vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation) where attacker-controlled search strings are echoed back to the user's browser without HTML entity encoding or Content Security Policy enforcement. The Elasticsearch7 plugin's query processing layer does not validate or escape special characters that have meaning in HTML context, allowing attackers to break out of the intended data context and inject arbitrary script tags or event handlers.
Know when N A 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:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
Mahara before 25.04.2 and 24.04.11 are vulnerable to displaying results that can trigger XSS via a malicious search query string. This occurs in the 'search site' feature when using the Elasticsearch7 search plugin. The Elasticsearch function does not properly sanitize input in the query parameter.
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.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2025-209573
GHSA-f5fr-j7r9-mmgp
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB