CVE-2026-34161: Chamilo LMS: Stored XSS via Malicious File Upload in Social Post Attachments Leads to Arbitrary JavaScript Execution
Chamilo LMS is an open-source learning management system. In versions prior to 2.0.0-RC.3, a Stored Cross-Site Scripting (XSS) vulnerability exists in the social post attachment upload functionality, where an authenticated user can upload a malicious HTML file containing JavaScript via the /api/socialpostattachments endpoint. The uploaded file is served back from the application at the generated contentUrl without sanitization, content type restrictions, or a Content-Disposition: attachment header, causing the JavaScript to execute in the browser within the application's origin. Because the payload is stored server-side and runs in the trusted origin, an attacker can perform session hijacking, account takeover, privilege escalation (if an admin views the link), and arbitrary actions on behalf of the victim. This issue has been fixed in version 2.0.0-RC.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Chamilo LMSto a version that resolves this vulnerability.Fixed in 2.0.0-RC.3
Event History
Frequently Asked Questions
What is the severity of CVE-2026-34161?
CVE-2026-34161 is classified as a high severity vulnerability due to its potential for arbitrary JavaScript execution.
How do I fix CVE-2026-34161?
To fix CVE-2026-34161, update to Chamilo LMS version 2.0.0-RC.3 or later.
What types of attacks are possible with CVE-2026-34161?
CVE-2026-34161 allows for stored cross-site scripting attacks, which can lead to unauthorized data access or session hijacking.
Who is affected by CVE-2026-34161?
CVE-2026-34161 affects all users of Chamilo LMS versions prior to 2.0.0-RC.3.
What are the consequences of CVE-2026-34161 if exploited?
If exploited, CVE-2026-34161 can result in the execution of malicious JavaScript, compromising user data and security.