CVE-2025-45893: opencart · Cross-site Scripting
Affects opencartSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmopencartpkg:npm/opencartOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediate mitigation should include disabling SVG uploads via the media manager until a patch is available. Restrict file uploads to safer formats that do not support embedded scripts.
- Implement server-side filtering of SVG files using specialized sanitization libraries that remove all script elements and potentially dangerous attributes before allowing upload or rendering.
- Employ Content Security Policy (CSP) headers to restrict the execution of inline scripts and limit the sources from which scripts can be loaded, reducing the impact of any injected scripts.
- Regularly audit and monitor uploaded media files for suspicious content, especially SVGs, to detect and remove malicious files promptly.
- Educate content managers and administrators about the risks of uploading untrusted SVG files and enforce strict access controls on who can upload media.
- Monitor OpenCart official channels for patches or updates addressing this vulnerability and apply them promptly once available.
- Consider implementing web application firewalls (WAFs) with rules to detect and block malicious SVG payloads or suspicious XSS patterns.
- Review and harden user session management to reduce the impact of session hijacking attempts.
Description
OpenCart version 4.1.0.4 is vulnerable to a Stored Cross-Site Scripting (XSS) attack via SVG file uploads used in blog posts. The vulnerability arises because SVG files uploaded through the media manager are not properly sanitized. Attackers can craft a malicious SVG file containing embedded JavaScript