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

CVE-2025-67849: Moodle XSS Vulnerability

CVE-2025-67849 is a cross-site scripting flaw in Moodle caused by improper sanitization of AI prompt responses, enabling attackers to inject malicious scripts and steal user sessions. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 15, 2026

CVE-2025-67849 Overview

CVE-2025-67849 is a cross-site scripting (XSS) vulnerability in Moodle, the open-source learning management platform. The flaw stems from improper sanitization of AI prompt responses rendered in the web interface. Attackers can inject malicious HTML or JavaScript that executes in the browsers of other users viewing the affected pages.

Successful exploitation can lead to session theft, credential harvesting, or manipulation of the Moodle user interface. The vulnerability requires user interaction and operates over the network without prior authentication.

Critical Impact

Authenticated session hijacking and UI manipulation through reflected or stored XSS payloads delivered via AI prompt response rendering in Moodle.

Affected Products

  • Moodle (multiple versions, per vendor CPE coverage)
  • Moodle 5.1.0
  • Deployments using Moodle AI prompt features

Discovery Timeline

  • 2026-02-03 - CVE-2025-67849 published to the National Vulnerability Database (NVD)
  • 2026-02-11 - Last updated in NVD database

Technical Details for CVE-2025-67849

Vulnerability Analysis

The vulnerability is classified as Cross-Site Scripting [CWE-79]. Moodle renders AI prompt responses into web pages without adequately sanitizing HTML and script content. When the AI subsystem returns attacker-controlled or attacker-influenced content, the output is reflected to other users without proper encoding.

The issue is exploitable over the network and requires user interaction, such as a victim viewing a page that contains the malicious AI response. The scope is changed because injected scripts execute under the victim's Moodle session context, affecting resources beyond the attacker's own privileges.

The attacker does not need prior authentication to influence the prompt response flow in vulnerable configurations. Confidentiality and integrity impacts are limited but meaningful within the application context.

Root Cause

The root cause is missing or insufficient output sanitization on AI-generated content before it is embedded into HTML responses. Moodle's rendering layer treats prompt output as trusted text, allowing HTML tags and <script> elements to pass through to the DOM.

Attack Vector

An attacker crafts an input that causes the AI subsystem to return a response containing malicious markup. When a legitimate Moodle user views the page rendering that response, the injected payload executes in their browser. Typical payloads target session cookies, perform actions on behalf of the user, or rewrite portions of the interface to facilitate phishing.

No verified public proof-of-concept code is available. See the Red Hat CVE Advisory and the Red Hat Bug Report for further technical context.

Detection Methods for CVE-2025-67849

Indicators of Compromise

  • Unexpected <script>, <iframe>, or event-handler attributes (onerror, onload) stored in Moodle AI prompt records or course content.
  • Outbound requests from user browsers to unknown domains following interactions with AI-assisted Moodle pages.
  • Anomalous session token reuse or concurrent sessions for the same Moodle user from different IP addresses.

Detection Strategies

  • Inspect Moodle application logs and database tables that store AI prompt inputs and responses for HTML or JavaScript syntax.
  • Deploy a Content Security Policy (CSP) in report-only mode to surface inline script execution attempts within Moodle pages.
  • Use web application firewall (WAF) rules to flag responses containing script tags within AI-related endpoints.

Monitoring Recommendations

  • Monitor authentication and session events for indicators of token theft or impersonation following user interaction with AI features.
  • Alert on administrative actions performed shortly after a user views AI-generated content.
  • Capture browser-side CSP violation reports to a centralized log store for correlation.

How to Mitigate CVE-2025-67849

Immediate Actions Required

  • Apply the Moodle security update addressing CVE-2025-67849 as soon as it is available for your branch.
  • Audit existing AI prompt records and stored content for malicious markup and remove or neutralize affected entries.
  • Rotate session keys and force re-authentication for users who interacted with AI features during the exposure window.

Patch Information

Refer to the Red Hat CVE Advisory and Moodle's official security announcements for fixed versions and package updates. Distribution-specific updates are tracked in the Red Hat Bug Report.

Workarounds

  • Temporarily disable Moodle AI prompt features until the patch is applied.
  • Enforce a strict Content Security Policy that blocks inline scripts and restricts script sources to trusted origins.
  • Restrict access to AI-related endpoints to authenticated users and apply rate limiting to reduce abuse opportunities.
bash
# Example restrictive CSP header for Moodle (adjust per deployment)
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; frame-ancestors 'self'; base-uri '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

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.01%

  • 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
  • Red Hat CVE Advisory

  • Red Hat Bug Report
  • Related CVEs
  • CVE-2022-50943: Moodle LMS 4.0 XSS Vulnerability

  • CVE-2025-67855: Moodle Reflected XSS Vulnerability

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

  • CVE-2021-47857: Moodle Calendar XSS Vulnerability
Default Legacy - Prefooter | 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