CVE-2025-50186 Chamilo: Stored XSS via Malicious CSV Filename in user_import.php

Medium 4.8 Published Updated

Attackers can execute arbitrary JavaScript in victim browsers by uploading maliciously named CSV files, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-50186?

CVE-2025-50186 is a medium-severity cross-site scripting vulnerability in Chamilo Chamilo Lms, published on 2 Mar 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Chamilo is a learning management system. Prior to version 1.11.30, a stored cross-site scripting (XSS) vulnerability exists due to insufficient sanitization of CSV filenames. An attacker can upload a maliciously named CSV file (e.g., <img src=q onerror=prompt(8)>.csv) that leads to JavaScript execution when viewed by administrators or users with access to import logs or file views. This issue has been patched in version 1.11.30.

Weakness: CWE-79

Which versions are affected by CVE-2025-50186?

It affects 1 product.

Products include Chamilo Chamilo Lms.

How do I fix CVE-2025-50186?

No fix has been published for CVE-2025-50186 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-50186 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-50186 exists.

All Chamilo Chamilo Lms vulnerabilities

Sources

Also known as GHSA-wrx6-5v5r-mmgx.

Is CVE-2025-50186 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free