CVE-2025-45893 Cross-site scripting in n/a

Medium 6.1 Published Updated

Attackers can execute arbitrary JavaScript in victim browsers by uploading malicious SVG files to OpenCart blog posts, potentially leading to session hijacking.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-45893?

CVE-2025-45893 is a medium-severity cross-site scripting vulnerability in n/a, published on 25 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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

Weakness: CWE-79

Which versions are affected by CVE-2025-45893?

1 open source package ship an affected version, including opencart. It affects 1 product.

PackageAffectedFixed in
opencart BitnamiAll versions to 4.1.0-4None

Products include Opencart Opencart.

How do I fix CVE-2025-45893?

No fix has been published for CVE-2025-45893 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-45893 being exploited?

There is no known exploitation of CVE-2025-45893 in the wild and no public exploit code.

Sources

Also known as BIT-opencart-2025-45893, GHSA-h243-vvj5-46wx.

Is CVE-2025-45893 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free