The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-61872

CVE-2025-61872: Mahara Elasticsearch7 XSS Vulnerability

CVE-2025-61872 is a cross-site scripting flaw in Mahara's Elasticsearch7 search plugin that allows attackers to execute malicious scripts via unsanitized search queries. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: May 15, 2026

CVE-2025-61872 Overview

CVE-2025-61872 is a reflected cross-site scripting (XSS) vulnerability [CWE-79] in Mahara, an open-source ePortfolio and social networking platform. The flaw exists in the search site feature when the Elasticsearch7 search plugin is enabled. Mahara fails to sanitize the query parameter before rendering it in the results page, allowing attackers to inject arbitrary JavaScript through a malicious search query string. Mahara versions before 25.04.2 and before 24.04.11 are affected.

Critical Impact

Attackers can craft malicious search URLs that execute JavaScript in the victim's browser session, enabling session theft, credential harvesting, and unauthorized actions on behalf of authenticated Mahara users.

Affected Products

  • Mahara versions prior to 25.04.2
  • Mahara versions prior to 24.04.11
  • Mahara deployments using the Elasticsearch7 search plugin

Discovery Timeline

  • 2026-04-24 - CVE-2025-61872 published to NVD
  • 2026-04-24 - Last updated in NVD database

Technical Details for CVE-2025-61872

Vulnerability Analysis

The vulnerability resides in Mahara's search site functionality when configured with the Elasticsearch7 search plugin. When a user submits a search query, the application passes the query parameter to the Elasticsearch backend and reflects the input back into the rendered results page. The Elasticsearch integration code does not apply HTML encoding or input sanitization to the query string before output.

An attacker can construct a URL containing a crafted query value with embedded HTML or JavaScript payloads. When a victim clicks the link or is redirected to it, the malicious payload executes in the victim's browser within the context of the Mahara application.

Because the attack requires user interaction and produces a scope change in the browser, it carries an EPSS probability of 0.031% at the 9.246 percentile, indicating low observed exploitation likelihood.

Root Cause

The root cause is missing output encoding in the Elasticsearch7 search plugin's results rendering path. User-controlled input from the query HTTP parameter flows directly into HTML output without contextual escaping. Mahara's broader search subsystem applies sanitization elsewhere, but the Elasticsearch7 plugin code path bypasses these protections.

Attack Vector

Exploitation is reflected and network-based. An attacker hosts or distributes a URL pointing to the Mahara search endpoint with a malicious query parameter. When a logged-in Mahara user follows the link, the injected script executes with the victim's privileges. Typical payloads target session cookies, CSRF tokens, or trigger authenticated requests to modify portfolios, expose private artifacts, or pivot to administrative functions if the victim holds elevated roles.

No verified proof-of-concept code is publicly available. See the Mahara Forum Discussion #9851 for vendor-provided technical details.

Detection Methods for CVE-2025-61872

Indicators of Compromise

  • HTTP GET requests to Mahara search endpoints containing <script>, javascript:, onerror=, or HTML entity-encoded variants in the query parameter
  • Unexpected outbound requests from user browsers to attacker-controlled domains immediately following a Mahara search action
  • Web server access logs showing unusually long or URL-encoded query values targeting the site search route

Detection Strategies

  • Inspect web application firewall (WAF) and reverse proxy logs for XSS signatures in query string parameters destined for Mahara search URLs
  • Correlate referrer headers showing external origins followed by anomalous JavaScript execution patterns in browser telemetry
  • Hunt for Mahara session cookies being transmitted to non-Mahara hosts in network egress logs

Monitoring Recommendations

  • Enable verbose access logging on the Mahara web tier and forward logs to a centralized analytics platform for query parameter inspection
  • Alert on HTTP 200 responses to search requests where the query parameter exceeds typical length thresholds or contains script-like tokens
  • Monitor Mahara administrative account activity for unexpected configuration changes that could follow a successful session hijack

How to Mitigate CVE-2025-61872

Immediate Actions Required

  • Upgrade Mahara to version 25.04.2 or 24.04.11, which contain the official fix for the Elasticsearch7 plugin sanitization gap
  • Audit Mahara configuration to determine whether the Elasticsearch7 search plugin is enabled and identify exposed instances
  • Review recent web server logs for suspicious query parameter values that may indicate prior exploitation attempts

Patch Information

The Mahara project addressed the vulnerability in releases 25.04.2 and 24.04.11. The patched releases add proper output encoding to the Elasticsearch7 search results rendering path. Refer to the Mahara Official Website for download links and release notes.

Workarounds

  • Disable the Elasticsearch7 search plugin and revert to Mahara's internal search backend until the patch can be applied
  • Deploy a WAF rule blocking requests to Mahara search endpoints where the query parameter contains HTML tags or script keywords
  • Enforce a strict Content Security Policy (CSP) header to limit inline script execution and restrict script sources for the Mahara origin
bash
# Example nginx WAF-style rule to block script-like patterns in the search query
location ~ ^/search/ {
    if ($arg_query ~* "(<script|javascript:|onerror=|onload=)") {
        return 403;
    }
    proxy_pass http://mahara_backend;
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMahara

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Mahara Official Website

  • Mahara Forum Discussion #9851
  • Related CVEs
  • CVE-2025-59308: Mahara Auth Bypass Vulnerability

  • CVE-2025-29992: Mahara Information Disclosure Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English