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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-04-14T21:12:48.128Z
- Modified: 2026-07-24T22:10:00.140Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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/social_post_attachments 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.

(As written by CVE List.)

## Affected

- chamilo chamilo-lms: < 2.0.0-RC.3
- chamilo chamilo_lms: up to 1.11.38; 2.0.0

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-273p-jw9w-3g22> (vendor-advisory)
- <https://github.com/chamilo/chamilo-lms/commit/7c4965e48769d1d06413836429e386816a465c7f> (patch)
- <https://github.com/chamilo/chamilo-lms/commit/da671d66a146887be3a16eabc5dcf0a92c55f7da> (patch)
- <https://github.com/chamilo/chamilo-lms/releases/tag/v2.0.0-RC.3> (product, release-notes)

## Sources

- CVE List: [CVE-2026-34161](https://www.cve.org/CVERecord?id=CVE-2026-34161), CVE Terms of Use, modified 2026-04-16
- NVD: [CVE-2026-34161](https://nvd.nist.gov/vuln/detail/CVE-2026-34161), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34161 · Whole record: https://cve.day/CVE-2026-34161.json · Rebuilt by cve.day 2026-11-25T22:59:18.791Z
