CVE-2025-1746 Cross-Site Scripting vulnerability in OpenCart
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.
| Package | Affected | Fixed in |
|---|---|---|
opencart Bitnami | All versions | 4.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.
Other vulnerabilities in OpenCart
Sources
Also known as BIT-opencart-2025-1746, GHSA-52xm-jh2q-v993.