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

CVE-2025-52470: Chamilo LMS Stored XSS Vulnerability

CVE-2025-52470 is a stored cross-site scripting flaw in Chamilo LMS that allows privileged users to inject malicious JavaScript payloads. This article covers the technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2025-52470 Overview

CVE-2025-52470 is a stored cross-site scripting (XSS) vulnerability affecting Chamilo LMS, a widely-used open-source learning management system. The vulnerability exists in the session_category_add.php script, where improper sanitization of the Category Name field allows privileged users to inject persistent JavaScript payloads. When other administrators or users access add_many_sessions_to_category.php, the injected script executes in their browser context, potentially compromising administrative sessions and enabling further attacks.

Critical Impact

Privileged attackers can inject persistent JavaScript payloads that execute in the context of administrative sessions, potentially leading to session hijacking, credential theft, or further compromise of the LMS platform.

Affected Products

  • Chamilo LMS versions prior to 1.11.30
  • Chamilo LMS installations with session category management functionality enabled
  • Organizations using Chamilo for e-learning and course management

Discovery Timeline

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

Technical Details for CVE-2025-52470

Vulnerability Analysis

This stored XSS vulnerability arises from insufficient input validation in Chamilo LMS's session category management functionality. The session_category_add.php script accepts user input for the Category Name field without properly sanitizing or encoding potentially malicious content. When a privileged user creates or modifies a session category with a crafted payload containing JavaScript code, that payload is stored directly in the database.

The stored payload is then retrieved and rendered without proper output encoding when other users access the add_many_sessions_to_category.php page. This creates a persistent attack vector where every user who views the affected page inadvertently executes the attacker's JavaScript code within their authenticated browser session.

The attack requires high privileges to exploit initially, but the impact extends to any user who subsequently views the compromised content. This includes administrators, making it particularly dangerous for session hijacking and privilege abuse scenarios.

Root Cause

The root cause of CVE-2025-52470 is the lack of proper input sanitization and output encoding in the session category management workflow. The Category Name field does not employ HTML entity encoding or use a sanitization library to strip or neutralize dangerous characters and script tags. The fix introduced by Chamilo implements the HTMLPurifier library with specific filters to remove malicious attributes and scripts from user-supplied content.

Attack Vector

The attack vector is network-based and requires an authenticated user with privileges to create or modify session categories. The attacker crafts a malicious Category Name containing JavaScript code (such as event handlers or script tags) and submits it through the legitimate interface. Once stored, the payload persists in the database and triggers when any user navigates to pages that display session category information, specifically add_many_sessions_to_category.php. The attack requires user interaction in that the victim must access the affected page for the payload to execute.

The security patch introduces the RemoveOnAttributes filter from the Chamilo HTMLPurifier component to sanitize input:

php
/* For licensing terms, see /license.txt */

+use Chamilo\CoreBundle\Component\HTMLPurifier\Filter\RemoveOnAttributes;
use Chamilo\CoreBundle\Entity\Course;
use Chamilo\CoreBundle\Entity\ExtraField;
use Chamilo\CoreBundle\Entity\Repository\SequenceResourceRepository;

Source: GitHub Commit

Detection Methods for CVE-2025-52470

Indicators of Compromise

  • Unusual or suspicious JavaScript code in session category names within the Chamilo database
  • Browser console errors or unexpected script executions when accessing session category management pages
  • Audit log entries showing creation or modification of session categories with encoded HTML or script content
  • Reports from users experiencing unexpected behavior or redirects when viewing session categories

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block XSS payloads in POST requests to session_category_add.php
  • Monitor database entries in session category tables for suspicious patterns such as <script>, onerror=, onclick=, or other event handlers
  • Enable Content Security Policy (CSP) headers to detect and report inline script execution attempts
  • Review application logs for repeated category creation or modification by single users

Monitoring Recommendations

  • Configure SentinelOne Singularity to monitor web application processes for suspicious JavaScript execution patterns
  • Enable browser-based security monitoring to detect client-side script injection attempts
  • Set up alerts for database modifications to session-related tables containing HTML or script content
  • Regularly audit privileged user activity within the Chamilo LMS administrative interface

How to Mitigate CVE-2025-52470

Immediate Actions Required

  • Upgrade Chamilo LMS to version 1.11.30 or later immediately to apply the official security patch
  • Review existing session category names in the database for any suspicious or malicious content
  • Temporarily restrict access to session category management functionality for non-essential users
  • Implement input validation at the web server or WAF level as an additional defense layer

Patch Information

Chamilo has released version 1.11.30 which addresses this vulnerability by implementing proper input sanitization using the HTMLPurifier library with the RemoveOnAttributes filter. Organizations should upgrade to this version as the primary remediation. The patch can be obtained from the official GitHub release. Technical details about the fix are available in the GitHub Security Advisory GHSA-p4m6-gwhg-x89f.

Workarounds

  • Implement Content Security Policy (CSP) headers with strict directives to prevent inline script execution as a defense-in-depth measure
  • Deploy a web application firewall (WAF) with XSS detection rules to filter malicious payloads before they reach the application
  • Restrict administrative access to trusted networks or IP ranges to limit the attack surface
  • Manually sanitize existing session category names by removing any HTML or script content from the database
bash
# Example CSP header configuration for Apache
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechChamilo

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Release v1.11.30
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-p4m6-gwhg-x89f
  • Related CVEs
  • CVE-2026-30882: Chamilo LMS Reflected XSS Vulnerability

  • CVE-2025-59543: Chamilo LMS Stored XSS Vulnerability

  • CVE-2025-59542: Chamilo LMS Stored XSS Vulnerability

  • CVE-2025-59540: Chamilo LMS Stored 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