CVE-2025-62415
JSON

6.9medium

bagisto - Cross Site Scripting (XSS) in TinyMCE Image Upload (HTML)

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-67px-r26w-598x

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 HTML 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 packageVersionsReported by
bagisto bagisto< 2.3.8CVE List
bagisto/bagisto (Packagist)before 2.3.8GitHub Advisory Database
webkul bagisto2.3.7NVD

All scores

GitHub_M6.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
GitHub6.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N
NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79CWE-80CWE-87

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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 HTML 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 HTML file containing embedded JavaScript. When viewed, the malicious code executes in the context of the admin/user’s browser.

Details

The application blocks the uploading of HTML files; however, if the backend detected that the content of the .png file is HTML or JavaScript, the file extension will be automatically converted from .png to .html. When the HTML is viewed, it will execute the JavaScript code.

PoC

Created a html file, renamed the extension to .png, and uploaded the file. It was converted to HTML file in the backend. When opened in another tab, the JavaScript code will execute. image image

Impact

A aalicious script is stored in HTML 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) cargar un archivo HTML 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

SourceRecordLicence
CVE ListCVE-2025-62415 changed 2025-10-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-67px-r26w-598x changed 2025-10-16CC-BY-4.0
NVDCVE-2025-62415 changed 2026-10-19Public domain