All vulnerabilities

Servers and applications

CVE-2026-34161

Stored XSS via Malicious File Upload in Social Post Attachments Leading to Arbitrary JavaScript Execution (<=2.0-RC.2)

Severity
Medium 5.1
Published
14 Apr 2026
Last changed
24 Jul 2026
Added to UpHeron
1 Nov 2026
Exploit chance
0.2% in the next 30 daysHigher than 13% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · Needs someone to view a page or file
Attacker can
Read some data · Change some data
CVSS vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Also known as
GHSA-273p-jw9w-3g22
Sources
NVD, Project advisories (GitHub)

Description

A Stored Cross-Site Scripting (XSS) vulnerability exists in the social post attachment upload functionality. An authenticated user can upload a malicious HTML file containing JavaScript, which is served back from the application and executed in the browser when accessed via the generated contentUrl.

Because the payload executes in the application’s origin, this allows attackers to perform actions such as session hijacking, account takeover, and arbitrary actions on behalf of the victim.

The application allows users to upload files via: POST /api/social_post_attachments

The server responds with a contentUrl: "contentUrl": "/r/user/social_post_attachments//view"

When this URL is accessed, the uploaded file is rendered directly in the browser without proper sanitization or safe content handling.

Key issues:

  • Uploaded content is served in an executable HTML context
  • No restriction on uploading HTML/JS content
  • No Content-Disposition: attachment header to force download
  • No…
From chamilo/chamilo-lms's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Chamilo LMSServers and applications · cpe:a:chamilo:chamilo_lms
  • Version 2.0.0-rc2
  • Version 2.0.0-rc1
  • Version 2.0.0-beta3
  • Version 2.0.0-beta2
All 11 release lines
  • Every version up to 1.11.38
  • Version 2.0.0-alpha1
  • Version 2.0.0-alpha2
  • Version 2.0.0-alpha3
  • Version 2.0.0-alpha4
  • Version 2.0.0-alpha5
  • Version 2.0.0-beta1
  • Version 2.0.0-beta2
  • Version 2.0.0-beta3
  • Version 2.0.0-rc1
  • Version 2.0.0-rc2
Chamilo LMSServers and applications · github:chamilo/chamilo-lms
  • Version 2.0-RC.2

About Chamilo LMS

Free Software Learning Management System

From Wikidata, CC0 1.0.
Share of websites with a known CMS
0.6%W3Techs, Nov 2026
GitHub stars
1,024GitHub, 15 Nov 2026
Forks
567GitHub, 15 Nov 2026
Latest release
v3.0.2GitHub, 15 Nov 2026
Released
3 Nov 2026GitHub
License
GPL-3.0GitHub
Written in
PHP, JavaScriptWikidata
First released
18 Jan 2010Wikidata
First published on GitHub
29 Mar 2013GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-34161
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-34161
  • GitHub Advisory Database https://github.com/advisories/GHSA-273p-jw9w-3g22
  • github.com https://github.com/chamilo/chamilo-lms/security/advisories/GHSA-273p-jw9w-3g22