CVE-2025-1746: OpenCart Cross-Site Scripting Vulnerability in Versions Prior to 4.1.0

opencart Updated 02 Oct 2025

Summary

08/05/2025
Yes i
Medium
Not published

CVE-2025-1746: Cross-Site Scripting vulnerability in OpenCart. Affects opencart versions < 4.1.0. Fixed in 4.1.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

OpenCart is a popular open-source e-commerce platform that enables users to create and manage online stores. It offers a range of features including product management, order processing, and customer management. However, like many web applications, it is susceptible to security vulnerabilities, which can compromise user data and the integrity of the application.

Vulnerability Detail

The Cross-Site Scripting (XSS) vulnerability identified as CVE-2025-1746 affects OpenCart versions prior to 4.1.0. This vulnerability allows attackers to inject malicious JavaScript code into the application, which can be executed in the browser of users who visit a compromised URL. The attack can occur through the '/product/search' endpoint, where an attacker can craft a malicious link. If a victim clicks on this link, sensitive information such as session cookies can be stolen, or actions can be performed on behalf of the user without their consent.

How To Fix

Minimum fixed version

4.1.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can implement input validation and sanitization on the '/product/search' endpoint to mitigate the risk of XSS attacks. This can be done by encoding user inputs and ensuring that any output is properly escaped before being rendered in the browser.

Conclusion

The Cross-Site Scripting vulnerability CVE-2025-1746 poses a significant risk to users of OpenCart versions prior to 4.1.0. It is crucial for users to update their installations to the latest version to protect against potential attacks. Implementing input validation can also help mitigate risks until an update is applied.

See every vulnerability recorded for opencart →

Share this vulnerability

FAQ

CVE-2025-1746 is a Cross-Site Scripting vulnerability in OpenCart that allows attackers to execute malicious JavaScript in the victim's browser.

OpenCart versions prior to 4.1.0 are affected by this vulnerability.

Attackers can steal sensitive user data, such as session cookies, or perform actions on behalf of the user.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

You can update OpenCart to version 4.1.0 or later by downloading the latest version from the official website or using a package manager.

Related vulnerabilities

Recent vulnerabilities recorded for opencart.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

4.1.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback