CVE-2026-70649chamilo/chamilo-lms Cross-site Scripting (XSS)
NVD
Vulnerability Summary
Summary This advisory covers a stored XSS vulnerability in Chamilo social-group discussions. A low-privileged authenticated group member can submit HTML/JavaScript through `/social/group-action`; the content is persisted as a group message and later rendered with `v-html="message.content"` in `assets/vue/components/usergroup/MessageItem.vue` when another group member, moderator, or administrator opens the discussion thread. This is distinct from CVE-2026-45143, which covered private messages/inbox rendering. The private-message issue is related context only; the requested new CVE is specifically for the social-group discussion path. Affected Versions Chamilo LMS `>= 2.0.0, < 2.0.3`. The issue was verified against: - `v2.0.1` - `v2.0.2` - master commit `6729016c1c3a794b8380cbee3400f23960f6c510` (`2026-06-15`, codename `2.1.0`) Patched Version Chamilo LMS `2.0.3`. The fix was applied to branch `2.0` through commit `cb7a94c` via PR `#8594`. Vulnerability Details The vulnerable path is the social-group discussion message flow: `/social/group-action` -> `SocialController::group()` -> `MessageManager::send_message()` -> `Message::setContent($content)` -> `MessageItem.vue` -> `v-html="message.content"` In `src/CoreBundle/Controller/SocialController.php`, the `group()` action reads group-message content directly from the multipart request body: ```php $content = $request->request->get('content', ''); ``` For group discussion actions, the controller only requires that the current user can view the group: ```php if (\in_array($action, ['reply_message_group', 'edit_message_group', 'add_message_group'], true)) { $this->denyAccessUnlessGranted(UsergroupVoter::VIEW, $group); } ``` `UsergroupVoter::VIEW` is satisfied by group membership: ```php private function canView(Usergroup $usergroup, $currentUser): bool { return $this->usergroupRepository->isGroupMember($usergroup->getId(), $currentUser); } ``` The same raw `$content` is then forwarded to `MessageManager::send_message()` for `Message::MESSAGE_TYPE_GROUP`: ```php $res = MessageManager::send_message( $userId, $title, $content, $structuredFiles, [], $groupId, $parentId, $editMessageId, 0, $userId, false, 0, false, false, Message::MESSAGE_TYPE_GROUP ); ``` Inside the message manager path, the content is persisted through `Message::setContent($content)` without server-side sanitization. When group discussion messages are returned to the frontend, `formatMessagesHierarchy()` passes stored message content through unchanged: ```php 'content' => $message->getContent(), ``` The frontend then renders that stored content as raw HTML in `assets/vue/components/usergroup/MessageItem.vue`: ```vue <div class="message-content" v-html="message.content" ></div> ``` No `sanitizeHtml()` wrapper or equivalent client-side sanitizer is applied at this sink. Attack Scenario 1. The attacker authenticates as a low-privileged user, such as a student. 2. The attacker joins or already belongs to a social group. 3. The attacker posts or replies to a group discussion through `/social/group-action` with an HTML/JavaScript payload in the `content` field. 4. Chamilo stores the payload as group-message content. 5. Another group member, moderator, teacher, or administrator opens the group discussion thread. 6. The stored payload executes in the victim's authenticated Chamilo session because the frontend renders the content with raw `v-html`. No phishing link or separate click is required beyond the victim opening the normal group discussion thread. Impact An authenticated low-privileged group member can execute arbitrary JavaScript in the browser of another authenticated user who opens the affected group discussion thread. If the victim is an administrator, moderator, or teacher, the attacker-controlled JavaScript executes with access to that victim's authenticated Chamilo origin. Depending on browser/session configuration and available application endpoints, this can enable account takeover, session/token theft, privileged CSRF actions, content manipulation, or further compromise of users who view the discussion. The issue is especially relevant for groups used for course-wide, community, or moderation workflows, because administrators or moderators may routinely open discussion threads submitted by low-privileged users. CVSS Suggested CVSS v3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H` Suggested severity: Critical. Rationale: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - User Interaction: Required, because the victim must open the group discussion thread - Scope: Changed, because attacker-controlled content executes in another user's authenticated browser context and privilege boundary - Confidentiality, Integrity, Availability: High when an administrator or similarly privileged user is targeted Difference From CVE-2026-45143 The direct private-message/inbox path is the same vulnerability identity as CVE-2026-45143 and should be treated as related incomplete-patch context only. This advisory requests a new CVE for the distinct social-group discussion vulnerability: - Different entry point: `/social/group-action` - Different controller path: `SocialController::group()` - Different persistence path: `MessageManager::send_message(..., Message::MESSAGE_TYPE_GROUP)` - Different authorization condition: any social-group member with `UsergroupVoter::VIEW` - Different victim workflow: a group member, moderator, teacher, or administrator opens a group discussion thread, not a private inbox message - Different frontend sink: `assets/vue/components/usergroup/MessageItem.vue` using `v-html="message.content"` This social-group path was not part of CVE-2026-45143 and would remain exploitable even if only the original private-message/inbox path had been patched. Related CVE Context GHSA-x88v-rg6r-vqq6 / CVE-2026-45143 covered stored XSS in Chamilo private messages/inbox rendering and was published on `2026-06-09`. During variant analysis for that issue, the social-group discussion path described in this advisory was identified as a separate sink with the same underlying unsafe-rendering pattern. The related private-message path helps explain how this class of bug was found, but the requested CVE for this advisory is limited to the social-group discussion path. Fix The issue was fixed in Chamilo LMS `2.0.3`. The defense-in-depth fix applied sanitization before rendering group message content and added frontend sanitization around the affected Vue rendering path. Recommended remediation pattern: 1. Sanitize group discussion content before persistence or before output, using Chamilo's existing trusted HTML sanitization utilities. 2. Avoid rendering user-controlled rich text through raw `v-html` unless the value has passed through a sanitizer such as the existing `sanitizeHtml()` helper. 3. Audit remaining `v-html` call sites for equivalent stored or reflected user-controlled content. References - Original related advisory: GHSA-x88v-rg6r-vqq6 / CVE-2026-45143 - Repository: `https://github.com/chamilo/chamilo-lms` - Fix PR: `#8594` - Fixed branch commit: `cb7a94c` - Vulnerable HEAD at filing time: `6729016c1c3a794b8380cbee3400f23960f6c510`
CVSS v3.1 Base Metrics — Score 9.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeChanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- chamilo/chamilo-lms >= 2.0.0
- chamilo/chamilo-lms 2.0.3
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.
- Check whether you run chamilo/chamilo-lms and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Aug 30, 2026Published
- Aug 30, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new chamilo/chamilo-lms CVEsYou are reading CVE-2026-70649. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
Data last checked: Nov 24, 2026 05:00 UTC