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-67850

CVE-2025-67850: Moodle Formula Editor XSS Vulnerability

CVE-2025-67850 is a cross-site scripting flaw in Moodle's formula editor that allows attackers to inject malicious code into arithmetic expression fields. This article covers the technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2025-67850 Overview

A Cross-Site Scripting (XSS) vulnerability has been discovered in Moodle's formula editor component. This security flaw arises from insufficient validation and sanitization of user-provided data in the arithmetic expression fields of the formula editor. A remote attacker with low-level privileges can exploit this vulnerability by injecting malicious JavaScript code into these expression fields. When other users, including administrators or students, view pages containing the malicious expressions, the injected code executes within their web browsers in the context of the Moodle application.

Critical Impact

Attackers can execute arbitrary JavaScript code in victims' browsers, potentially leading to session hijacking, credential theft, data exfiltration, or unauthorized actions performed on behalf of legitimate users within the Moodle learning management system.

Affected Products

  • Moodle LMS (specific versions not disclosed in advisory)
  • Systems utilizing the Moodle formula editor component
  • Educational institutions and organizations running vulnerable Moodle installations

Discovery Timeline

  • 2026-02-03 - CVE-2025-67850 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2025-67850

Vulnerability Analysis

This vulnerability is classified as a stored Cross-Site Scripting (XSS) flaw (CWE-79) affecting Moodle's formula editor functionality. The formula editor is designed to allow users to input mathematical and arithmetic expressions, which are then rendered for display to other users within the learning management system.

The security issue stems from the application's failure to properly validate, sanitize, or encode user-supplied input in the arithmetic expression fields before storing and subsequently rendering this content in the browsers of other users. This creates an opportunity for attackers to craft malicious payloads that bypass the existing input validation mechanisms.

When exploited, the attacker's JavaScript code executes with the same origin permissions as the Moodle application, granting access to session cookies, local storage, and the ability to perform actions on behalf of the victim user. In an educational environment, this could compromise student data, grades, course materials, or administrative functions.

Root Cause

The root cause of this vulnerability lies in insufficient input sanitization within Moodle's formula editor component. The arithmetic expression fields accept and store user input without adequately filtering or encoding potentially dangerous characters and script elements. When these expressions are rendered in the browser, the unsanitized content is interpreted as executable code rather than display text.

Specifically, the application fails to implement proper output encoding when displaying formula expressions, allowing HTML and JavaScript elements embedded in the input to be processed by the browser's rendering engine.

Attack Vector

The attack requires network access and can be executed remotely by an authenticated user with low-level privileges (such as a standard student account). User interaction is required as victims must view the page containing the malicious formula expression for the attack to succeed.

The attack flow typically proceeds as follows:

  1. An attacker with a valid Moodle account accesses the formula editor
  2. Instead of legitimate arithmetic expressions, the attacker injects JavaScript payloads into the expression fields
  3. The malicious content is stored in the Moodle database
  4. When other users (students, instructors, administrators) navigate to pages displaying the formula, the malicious script executes
  5. The attacker can steal session tokens, perform actions as the victim, or redirect users to phishing sites

The vulnerability can be exploited by embedding JavaScript event handlers or script tags within the formula expression input. For example, crafted payloads might leverage techniques such as script injection within mathematical notation or exploitation of HTML entities that are improperly decoded during rendering. For detailed technical information, refer to the Red Hat CVE-2025-67850 Advisory.

Detection Methods for CVE-2025-67850

Indicators of Compromise

  • Unusual JavaScript or HTML tags present in database entries for formula expressions
  • User-submitted content containing <script>, onerror, onload, or similar event handler attributes
  • Unexpected outbound network requests from client browsers when viewing formula content
  • Reports of session hijacking or unauthorized account activity following visits to formula-containing pages

Detection Strategies

  • Implement web application firewall (WAF) rules to detect XSS payloads in POST requests to formula editor endpoints
  • Deploy content security policy (CSP) headers to prevent inline script execution and report violations
  • Monitor application logs for patterns indicative of XSS injection attempts in formula-related API calls
  • Utilize browser-based XSS auditor features and monitor for triggered alerts

Monitoring Recommendations

  • Enable detailed logging for all user input submissions to the formula editor component
  • Configure security information and event management (SIEM) systems to alert on XSS signature patterns
  • Regularly audit stored formula expressions in the database for anomalous content
  • Monitor for CSP violation reports that may indicate attempted exploitation

How to Mitigate CVE-2025-67850

Immediate Actions Required

  • Review and apply the latest Moodle security patches addressing this vulnerability
  • Audit existing formula expressions in the database for potentially malicious content
  • Implement Content Security Policy (CSP) headers to restrict inline script execution
  • Consider temporarily restricting access to the formula editor for untrusted users until patches are applied

Patch Information

Organizations should monitor official Moodle security announcements and apply relevant patches as soon as they become available. Additional details can be found in the Red Hat CVE-2025-67850 Advisory and the Red Hat Bug Report #2423838.

Workarounds

  • Deploy a web application firewall (WAF) with XSS filtering capabilities in front of Moodle installations
  • Implement strict Content Security Policy headers to mitigate the impact of XSS exploitation
  • Restrict formula editor permissions to trusted users only until a patch is applied
  • Enable Moodle's built-in security features for input sanitization where available
bash
# Example CSP header configuration for Apache
# Add to .htaccess or Apache configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'; frame-ancestors 'self';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechMoodle

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Red Hat CVE-2025-67850 Advisory

  • Red Hat Bug Report #2423838
  • Related CVEs
  • CVE-2025-67855: Moodle Reflected XSS Vulnerability

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

  • CVE-2021-47857: Moodle Calendar XSS Vulnerability

  • CVE-2025-26530: Moodle Question Bank Filter XSS Flaw
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