Skip to main content
VulnerabilityPublished

CVE-2025-45893: opencart · Cross-site Scripting

Affects opencartSource CVE Database V5

0

Not known to be exploited · CVSS 6.1 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmopencartpkg:npm/opencartOther threatsAffected
  • =4.1.0.4
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. 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.
  2. 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.
  3. 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.
  4. Regularly audit and monitor uploaded media files for suspicious content, especially SVGs, to detect and remove malicious files promptly.
  5. Educate content managers and administrators about the risks of uploading untrusted SVG files and enforce strict access controls on who can upload media.
  6. Monitor OpenCart official channels for patches or updates addressing this vulnerability and apply them promptly once available.
  7. Consider implementing web application firewalls (WAFs) with rules to detect and block malicious SVG payloads or suspicious XSS patterns.
  8. 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

References

Community reviews

Loading reviews…