CVE-2026-34161: Chamilo LMS: Stored XSS via Malicious File Upload in Social Post Attachments Leads to Arbitrary JavaScript Execution

Published Apr 14, 2026
·
Updated

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

12 affected components
Chamilo Chamilo LMS<2.0.0-RC.3
Chamilo Chamilo LMS<=1.11.38
Chamilo Chamilo LMS=2.0.0-alpha1
Chamilo Chamilo LMS=2.0.0-alpha2
Chamilo Chamilo LMS=2.0.0-alpha3
Chamilo Chamilo LMS=2.0.0-alpha4
Chamilo Chamilo LMS=2.0.0-alpha5
Chamilo Chamilo LMS=2.0.0-beta1
Chamilo Chamilo LMS=2.0.0-beta2
Chamilo Chamilo LMS=2.0.0-beta3
Chamilo Chamilo LMS=2.0.0-rc1
Chamilo Chamilo LMS=2.0.0-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Chamilo LMS to a version that resolves this vulnerability.

    Fixed in 2.0.0-RC.3

Event History

Apr 14, 2026
CVE Published
via MITRE·09:12 PM
Data Sourced
via MITRE·09:12 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2026-34161?

To fix CVE-2026-34161, update to Chamilo LMS version 2.0.0-RC.3 or later.

3

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.

4

Who is affected by CVE-2026-34161?

CVE-2026-34161 affects all users of Chamilo LMS versions prior to 2.0.0-RC.3.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203