CVE-2026-61577chamilo/chamilo-lms Cross-site Scripting (XSS)
NVD
Vulnerability Summary
Summary The social wall in Chamilo 2.0 stores the `content` of a `SocialPost` (wall posts and wall comments) without any sanitization on write or on read, and the Vue front-end renders that content with `v-html` (raw HTML injection). Any authenticated low-privilege user (e.g. a student) can post a wall post/comment whose `content` contains an HTML event handler such as `<img src=x onerror=...>`. When the victim β the wall owner, any of their friends, or any teacher/administrator browsing that user's social wall β opens the wall, the attacker's JavaScript executes in the victim's authenticated session. This is a stored, cross-user XSS (CWE-79). The identical render pattern for private messages (`Message.content`, also rendered via `v-html`) IS sanitized by `MessageNormalizer`, which runs `\Security::remove_XSS(...)` on output and has a dedicated test suite. The equivalent normalizer/processor for `SocialPost` is missing, so social-wall content is the un-defended path. Affected component - Repository: `chamilo/chamilo-lms` - Version verified: `v2.0.2` (latest release at time of report) and `master` HEAD. - Write source (no sanitization): - `src/CoreBundle/Entity/SocialPost.php` β `content` is in the `social_post:write` serialization group (line ~106-108) with no `Assert` / HTMLPurifier annotation; `setContent()` (line ~257) is a plain assignment. - The `Post` operation in the `#[ApiResource(...)]` block uses `securityPostDenormalize: "is_granted('CREATE', object)"` with the default API-Platform `PersistProcessor` (no custom processor, no purification). - Read source (no sanitization): - `src/CoreBundle/State/SocialPostStateProvider.php` β `provide()` only checks the `social.allow_social_tool` setting and delegates to the default Doctrine item/collection providers; it does not sanitize `content`. - There is no `SocialPostNormalizer`. The registered normalizers are for `Message`, `Session`, `User`, and SCIM only. - Sink (raw render): - `assets/vue/components/social/SocialWallPost.vue:83` β `<div v-html="post.content" />` - `assets/vue/components/social/SocialWallComment.vue:19` β `<q-item-label v-html="comment.content" />` Threat model / cross-user reach - Attacker: any authenticated user with a normal (student-level) account. - `src/CoreBundle/Security/Authorization/Voter/SocialPostVoter.php`: - `CREATE` requires `currentUser === sender` and, when `userReceiver` is set, that the attacker is a `USER_RELATION_TYPE_FRIEND` of the receiver β i.e. the ordinary social-wall flow (post to a friend's wall / comment on a wall). - `VIEW` returns `true` for any authenticated user. - Victims: the wall owner, the owner's friends, and any teacher/administrator who opens that user's social wall (routine activity in an LMS). The payload executes in their session, enabling session/CSRF-token theft and authenticated action forgery β including against privileged accounts. Impact Stored cross-user XSS executing in the victim's authenticated browser session within an LMS. Because teachers and administrators routinely view student social walls, a low-privilege attacker can target privileged sessions (session hijacking, CSRF-token exfiltration, forged administrative actions). CWE-79. Credit Reported by tonghuaroot.
Affected & Patched Versions
- chamilo/chamilo-lms <= 2.0.2
- chamilo/chamilo-lms 2.0.3
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run chamilo/chamilo-lms and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Aug 4, 2026Published
- Aug 4, 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-61577. 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