6.9medium
bagisto - Cross Site Scripting (XSS) in TinyMCE Image Upload (SVG)
- Severity
- 6.9medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.28% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-fg89-g389-p346
Description
Bagisto is an open source laravel eCommerce platform. In Bagisto v2.3.7, the TinyMCE image upload functionality allows an attacker with sufficient privileges (e.g. admin) to upload a crafted SVG file containing embedded JavaScript. When viewed, the malicious code executes in the context of the admin/user’s browser. This vulnerability is fixed in 2.3.8.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| bagisto bagisto | < 2.3.8 | CVE List |
| bagisto/bagisto (Packagist) | before 2.3.8 | GitHub Advisory Database |
| webkul bagisto | 2.3.7 | NVD |
All scores
| GitHub_M | 6.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 6.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Classification
What each source says
CVE List
Bagisto is an open source laravel eCommerce platform. In Bagisto v2.3.7, the TinyMCE image upload functionality allows an attacker with sufficient privileges (e.g. admin) to upload a crafted SVG file containing embedded JavaScript. When viewed, the malicious code executes in the context of the admin/user’s browser. This vulnerability is fixed in 2.3.8.
GitHub Advisory Database
Summary
In Bagisto v2.3.7, the TinyMCE image upload functionality allows an attacker with sufficient privileges (e.g. admin) to upload a crafted SVG file containing embedded JavaScript. When viewed, the malicious code executes in the context of the admin/user’s browser.
Details
The underlying problem is that SVG is XML/markup, so when it is uploaded and then directly rendered or embedded, script or event handlers within are allowed to run unless sanitized. In Bagisto, the integration of TinyMCE’s image upload (or media manager) may accept SVG files without sanitizing or rejecting unsafe content. When the SVG is later included (inline or via object/embed) in content displayed in admin or UI, the browser may execute the script portion of the SVG. The application might not validate the file content (i.e. inspect the SVG XML) or strip <script>, onload, onclick, foreignObject, xlink:href injection, objects/embed tags, etc.
PoC
Navigate to any forms with TinyMCE editor. Attempt to upload a SVG file with embedded JavaScript. image JavaScript was triggered. image
Impact
Malicious script is stored in SVG file and executed when the content is viewed. An attacker (with upload privilege) can target other admin users or editors who view the content, enabling session hijacking, unauthorized actions, or privilege escalation.
NVD (es)
Bagisto es una plataforma de comercio electrónico laravel de código abierto. En Bagisto v2.3.7, la funcionalidad de carga de imágenes de TinyMCE permite a un atacante con privilegios suficientes (p. ej., administrador) subir un archivo SVG manipulado que contiene JavaScript incrustado. Cuando se visualiza, el código malicioso se ejecuta en el contexto del navegador del administrador/usuario. Esta vulnerabilidad se corrige en la versión 2.3.8.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-62418 changed 2025-10-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fg89-g389-p346 changed 2025-10-16 | CC-BY-4.0 |
| NVD | CVE-2025-62418 changed 2026-10-19 | Public domain |