CVE-2025-62414: Bagisto/bagisto Cross-Site Scripting Vulnerability
MODERATECVE-2025-62414 is a MODERATE (CVSS 6.9) cross-site scripting vulnerability (CWE-87: Improper Neutralization of Alternate XSS Syntax) affecting Bagisto/bagisto libraries in the Packagist ecosystem. The issue involves bagisto has cross site scripting (xss) in create new customer. Remediation is available by upgrading affected packages to version 2.3.8.
CVE-2025-62414 at a Glance
Security Impact
CVSS: 6.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N).
How to Fix CVE-2025-62414
To remediate this vulnerability, upgrade all affected Bagisto/bagisto dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade bagisto/bagisto to 2.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for bagisto/bagisto
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-62414, inspect your project dependencies for Bagisto/bagisto:
inspect dependencies for bagisto/bagisto
Analyze the terminal output to locate any version of Bagisto/bagisto in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-87: Improper Neutralization of Alternate XSS Syntax, where the product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax. In Bagisto/bagisto, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-62414 Affected Bagisto/bagisto Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
bagisto/bagisto
|
Packagist |
< 2.3.8
|
2.3.8
|
References
Frequently Asked Questions
What is CVE-2025-62414?
Which Bagisto/bagisto versions are affected?
What version fixes CVE-2025-62414?
Is bagisto/bagisto affected?
What is the CVSS score of CVE-2025-62414?
What CWE is associated with CVE-2025-62414?
How can I check Packagist dependencies for CVE-2025-62414?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r9xj-mvqf-jm7w",
"modified" : "2025-10-16T21:54:57Z",
"published" : "2025-10-16T20:48:48Z",
"aliases" : [ "CVE-2025-62414" ],
"summary" : "bagisto has Cross Site Scripting (XSS) in Create New Customer",
"details" : "### Summary\nIn 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.\n\n### Details\nThe 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. \n\n### PoC\nNavigate to sales orders, and create a new customer.\n<img width=\"643\" height=\"567\" alt=\"image\" src=\"https://github.com/user-attachments/assets/e3a7c5a2-f53b-4db6-ac23-3451bca58956\" />\nEnter the payload `\"><svg/onload=prompt(document.domain)>` to the first_name and last_name.\n<img width=\"1527\" height=\"767\" alt=\"image\" src=\"https://github.com/user-attachments/assets/86ac325e-7700-477d-a13d-be2d4885f510\" />\nScripts were triggered.\n<img width=\"1267\" height=\"321\" alt=\"image\" src=\"https://github.com/user-attachments/assets/ce673b44-13cc-4e88-a89e-03bf0bd7e244\" />\n<img width=\"1336\" height=\"404\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d45913ea-b177-4926-8612-92518e12f11e\" />\n\n\n### Impact\nStored 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "bagisto/bagisto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.3.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.3.7"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/bagisto/bagisto/security/advisories/GHSA-r9xj-mvqf-jm7w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-62414"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bagisto/bagisto"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-80", "CWE-87" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-16T20:48:48Z",
"nvd_published_at" : "2025-10-16T19:15:34Z"
}
}