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
    • 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-26530

CVE-2025-26530: Moodle Question Bank Filter XSS Flaw

CVE-2025-26530 is a reflected cross-site scripting vulnerability in Moodle's question bank filter that allows attackers to execute malicious scripts. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-26530 Overview

CVE-2025-26530 is a reflected Cross-Site Scripting (XSS) vulnerability affecting the Moodle learning management system. The vulnerability exists in the question bank filter component, which failed to properly sanitize user-supplied input before reflecting it back to users. This allows attackers to inject malicious JavaScript code that executes in the context of a victim's browser session when they click on a crafted link.

Critical Impact

Attackers can steal session cookies, perform actions on behalf of authenticated users, redirect users to malicious sites, or deface content within the Moodle platform.

Affected Products

  • Moodle LMS (multiple versions affected)
  • Moodle Question Bank Filter component
  • Moodle deployments with default configurations

Discovery Timeline

  • 2025-02-24 - CVE-2025-26530 published to NVD
  • 2025-08-11 - Last updated in NVD database

Technical Details for CVE-2025-26530

Vulnerability Analysis

This reflected XSS vulnerability stems from insufficient input sanitization in Moodle's question bank filter functionality. The question bank is a core component of Moodle that allows educators to create, organize, and manage quiz questions. When users interact with the filter feature to search or sort questions, the application reflects certain parameters back to the page without proper encoding or sanitization.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), which encompasses XSS vulnerabilities. The attack requires user interaction—specifically, a victim must click on a maliciously crafted URL containing the XSS payload. Once triggered, the malicious script executes within the victim's browser session with full access to their Moodle authentication context.

The scope is changed, meaning successful exploitation can affect resources beyond the vulnerable component, potentially impacting confidentiality and integrity of user sessions and data within the Moodle platform.

Root Cause

The root cause is inadequate input validation and output encoding in the question bank filter component. When user-supplied data is passed through filter parameters, the application fails to properly sanitize special characters such as <, >, ", and ' before incorporating them into the HTML response. This allows attackers to break out of the expected context and inject arbitrary HTML or JavaScript code.

Attack Vector

The attack is network-based and requires user interaction. An attacker would craft a malicious URL containing JavaScript code in the vulnerable filter parameter and distribute it through phishing emails, social engineering, or by embedding the link in forums or other platforms. When an authenticated Moodle user clicks the link, the reflected payload executes in their browser.

The vulnerability can be exploited to perform session hijacking by stealing authentication cookies, credential theft through fake login forms, unauthorized actions on behalf of the victim user, or defacement of the Moodle interface visible to the targeted user.

Detection Methods for CVE-2025-26530

Indicators of Compromise

  • Unusual URL parameters in web server logs containing JavaScript code or encoded script tags
  • Requests to the question bank filter endpoint with suspicious payloads such as <script>, onerror=, or javascript:
  • Reports from users about unexpected behavior or redirects when accessing Moodle
  • Web Application Firewall (WAF) alerts for XSS pattern matches in requests

Detection Strategies

  • Enable and monitor web server access logs for requests containing XSS payloads in query parameters
  • Deploy WAF rules to detect and block common XSS patterns targeting the question bank filter
  • Implement Content Security Policy (CSP) headers to mitigate script execution and detect violations
  • Configure browser-based XSS auditors where applicable and monitor for triggered protections

Monitoring Recommendations

  • Review Apache or Nginx access logs for anomalous requests to /question/bank/ endpoints
  • Set up alerting for unusual patterns in user-agent strings or referrer headers associated with XSS campaigns
  • Monitor for sudden increases in requests with encoded characters such as %3Cscript%3E in URLs
  • Track CSP violation reports to identify attempted XSS exploitation

How to Mitigate CVE-2025-26530

Immediate Actions Required

  • Update Moodle to the latest patched version addressing MDL-84146 immediately
  • Review and strengthen Content Security Policy headers to restrict inline script execution
  • Enable HttpOnly and Secure flags on session cookies to limit cookie theft impact
  • Educate users about the risks of clicking untrusted links to Moodle

Patch Information

Moodle has released security patches addressing this vulnerability. The fix is tracked under MDL-84146 in the Moodle Git repository. Administrators should consult the Moodle Security Forum for detailed information about affected versions and upgrade paths. Apply the official patches as soon as possible to remediate this vulnerability.

Workarounds

  • Implement a Web Application Firewall with rules to block XSS payloads targeting the question bank filter
  • Restrict access to the question bank functionality to trusted internal networks if possible
  • Deploy browser-level protections such as strict CSP headers with script-src 'self' directive
  • Consider temporarily disabling or limiting access to the affected filter functionality until patches are applied
bash
# Example Apache configuration to add security headers
<IfModule mod_headers.c>
    # Add Content Security Policy to mitigate XSS
    Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"
    # Ensure cookies are secure
    Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure;SameSite=Strict
    # Enable XSS protection
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Content-Type-Options "nosniff"
</IfModule>

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMoodle

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.37%

  • 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
  • Vendor Resources
  • Moodle Git Commit Search

  • Moodle Forum Discussion Thread
  • Related CVEs
  • CVE-2025-67855: Moodle Reflected XSS Vulnerability

  • CVE-2025-67849: Moodle AI Prompt XSS Vulnerability

  • CVE-2025-67850: Moodle Formula Editor XSS Vulnerability

  • CVE-2021-47857: Moodle Calendar XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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