{"id":"CVE-2025-62415","aliases":["CVE-2025-62415","GHSA-67px-r26w-598x"],"related":[],"kind":"vulnerability","state":"published","title":"bagisto - Cross Site Scripting (XSS) in TinyMCE Image Upload (HTML)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nIn 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.\n\n### Details\nThe 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.\n\n### PoC\nCreated 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.\n<img width=\"1605\" height=\"702\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bd9406aa-2380-464f-ac21-32d483639969\" />\n<img width=\"1358\" height=\"314\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e5a64a5a-39fb-4fdb-ada9-14c4b9554803\" />\n\n### Impact\nA 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-10-16T18:12:10.000Z","modified":"2026-10-19T16:10:00.260Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","score":6.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-80","CWE-87"],"affected":[{"ranges":[{"version":"< 2.3.8","status":"affected"}],"vendor":"bagisto","product":"bagisto","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.8"}],"ecosystem":"Packagist","package":"bagisto/bagisto","purl":"pkg:composer/bagisto/bagisto","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.3.7"}],"vendor":"webkul","product":"bagisto","cpe":"cpe:2.3:a:webkul:bagisto:2.3.7:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bagisto/bagisto/security/advisories/GHSA-67px-r26w-598x","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62415","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bagisto/bagisto/commit/7b6b1dd639a14e7053bb82ef2f971c1f533fdfab","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/bagisto/bagisto","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-17T14:30:48.700Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-62415","url":"https://www.cve.org/CVERecord?id=CVE-2025-62415","licence":"CVE Terms of Use","modified":"2025-10-17T14:30:51.605Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-67px-r26w-598x","url":"https://github.com/advisories/GHSA-67px-r26w-598x","licence":"CC-BY-4.0","modified":"2025-10-16T21:57:54.162Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-62415","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62415","licence":"Public domain","modified":"2026-10-19T16:10:00.260Z"}],"updatedAt":"2026-11-25T22:59:06.514Z","epss":{"score":0.0028,"percentile":0.21936,"date":"2026-12-01T12:00:22.000Z"}}