CVE-2025-1746 Cross-Site Scripting vulnerability in OpenCart

Medium 6.1 Published Updated

Attackers can execute JavaScript via malicious search URLs in OpenCart, potentially stealing session cookies or performing actions on behalf of users.

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
Available

What is CVE-2025-1746?

CVE-2025-1746 is a medium-severity cross-site scripting vulnerability in OpenCart, published on 28 Feb 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

Cross-Site Scripting vulnerability in OpenCart versions prior to 4.1.0. This vulnerability allows an attacker to execute JavaScript code in the victim's browser by sending the victim a malicious URL using the search in the /product/search endpoint. This vulnerability could be exploited to steal sensitive user data, such as session cookies, or to perform actions on behalf of the user.

Weakness: CWE-79

Which versions are affected by CVE-2025-1746?

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

PackageAffectedFixed in
opencart BitnamiAll versions4.1.0

Products include Opencart Opencart.

How do I fix CVE-2025-1746?

Upgrade opencart to 4.1.0 or later.

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-1746 being exploited?

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

Sources

Also known as BIT-opencart-2025-1746, GHSA-52xm-jh2q-v993.

Is CVE-2025-1746 in your software?

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

Check your SBOMs for free