CVE-2025-62414: bagisto - Cross Site Scripting (XSS) in Create New Customer
Summary In Bagisto v2.3.7, the “Create New Customer” feature (in the admin panel) is vulnerable to reflected / stored Cross-Site Scripting (XSS). An attacker with access to the admin create-customer form can inject malicious JavaScript payloads into certain input fields. These payloads may later execute in the context of an admin’s browser or another user viewing the customer data, enabling session theft or admin-level actions.
Details The vulnerability arises because certain input fields are not properly sanitized or escaped when rendering customer data in the admin UI. The form data is stored in the database (i.e. it is stored XSS), and later when customer records are displayed (e.g. in a grid, detail view, or listing), the input is interpolated into HTML without encoding or filtering.
PoC Navigate to sales orders, and create a new customer. <img width="643" height="567" alt="image" src="https://github.com/user-attachments/assets/e3a7c5a2-f53b-4db6-ac23-3451bca58956" /> Enter the payload "><svg/onload=prompt(document.domain)> to the firstname and lastname. <img width="1527" height="767" alt="image" src="https://github.com/user-attachments/assets/86ac325e-7700-477d-a13d-be2d4885f510" /> Scripts were triggered. <img width="1267" height="321" alt="image" src="https://github.com/user-attachments/assets/ce673b44-13cc-4e88-a89e-03bf0bd7e244" /> <img width="1336" height="404" alt="image" src="https://github.com/user-attachments/assets/d45913ea-b177-4926-8612-92518e12f11e" />
Impact Stored XSS vulnerability — malicious script persisted in database and executed when viewing the data. An attacker (with limited privilege) could inject JavaScript that runs in the browser of an admin or user who views injected customer records. The script can steal session cookies, perform actions on behalf of admin, escalate privileges, or pivot into further attacks. In an e-commerce admin system, this is high severity due to potential access to customer data, order management, or site configuration.
Other sources
Bagisto is an open source laravel eCommerce platform. In Bagisto v2.3.7, the “Create New Customer” feature (in the admin panel) is vulnerable to Cross-Site Scripting (XSS). An attacker with access to the admin create-customer form can inject malicious JavaScript payloads into certain input fields. These payloads may later execute in the context of an admin’s browser or another user viewing the customer data, enabling session theft or admin-level actions. This vulnerability is fixed in 2.3.8.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-62414?
CVE-2025-62414 has a critical severity due to its potential impact on user data and application integrity.
How do I fix CVE-2025-62414?
To fix CVE-2025-62414, upgrade your Bagisto installation to version 2.3.8 or later.
What types of attacks are possible due to CVE-2025-62414?
CVE-2025-62414 allows attackers to perform Cross-Site Scripting (XSS) attacks, potentially compromising session data and user information.
What versions of Bagisto are affected by CVE-2025-62414?
Bagisto versions up to and including 2.3.7 are affected by CVE-2025-62414.
Are there any workarounds for CVE-2025-62414 if I cannot upgrade Bagisto?
If you cannot upgrade, restrict access to the admin panel and monitor for suspicious activity as a temporary workaround for CVE-2025-62414.