CVE-2025-57407: S cart/core Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-46v4-5mc8-q2cf
CWE-79
Published
Advisory Summary

CVE-2025-57407 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting S cart/core libraries in the Packagist ecosystem. The issue involves gp247 and s-cart have a stored cross-site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 1.1.24.

CVE-2025-57407 at a Glance

CVE Identifier CVE-2025-57407
GHSA Identifier GHSA-46v4-5mc8-q2cf
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product S cart/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-57407

To remediate this vulnerability, upgrade all affected S cart/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

s-cart/core fixed: Latest secure release
Upgrade s-cart/core to Latest secure release
gp247/core fixed: 1.1.24
Upgrade gp247/core to 1.1.24
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for s-cart/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-57407, inspect your project dependencies for S cart/core:

inspect dependencies for s-cart/core

Analyze the terminal output to locate any version of S cart/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.24), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In S cart/core, 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

A stored cross-site scripting (XSS) vulnerability in the Admin Log Viewer of S-Cart <=10.0.3 allows a remote authenticated attacker to inject arbitrary web script or HTML via a crafted User-Agent header. The script is executed in an administrator's browser when they view the security log page, which could lead to session hijacking or other malicious actions.

CVE-2025-57407 Affected S cart/core Versions

2 component(s)
Fixed Versions:
1.1.24
Product / Package Ecosystem Affected Versions Fixed Version
s-cart/core
Packagist
≤ 9.0.5
gp247/core
Packagist
< 1.1.24
1.1.24

References

Frequently Asked Questions

What is CVE-2025-57407?
CVE-2025-57407 is a security vulnerability in S cart/core involving GP247 and S-Cart have a stored cross-site scripting (XSS) vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which S cart/core versions are affected?
Affected versions include releases prior to 1.1.24 across affected packages: s-cart/core, gp247/core.
What version fixes CVE-2025-57407?
Upgrading to 1.1.24 (or the latest patched release for your respective branch) resolves the vulnerability.
Is s-cart/core affected?
Yes, s-cart/core is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is gp247/core affected?
Yes, gp247/core is affected in releases prior to 1.1.24. Upgrade your dependency to 1.1.24 or later.
What CWE is associated with CVE-2025-57407?
CVE-2025-57407 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2025-57407?
Run the dependency tree command: 'inspect dependencies for s-cart/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-46v4-5mc8-q2cf",
  "modified" : "2025-09-23T19:02:43Z",
  "published" : "2025-09-23T18:30:22Z",
  "aliases" : [ "CVE-2025-57407" ],
  "summary" : "GP247 and S-Cart have a stored cross-site scripting (XSS) vulnerability",
  "details" : "A stored cross-site scripting (XSS) vulnerability in the Admin Log Viewer of S-Cart <=10.0.3 allows a remote authenticated attacker to inject arbitrary web script or HTML via a crafted User-Agent header. The script is executed in an administrator's browser when they view the security log page, which could lead to session hijacking or other malicious actions.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "s-cart/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "9.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "gp247/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.24"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57407"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gp247net/core/commit/e9848706b41d835ca3d668cb1554650403e86da1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gp247net/core/releases/tag/1.1.24"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/s-cart/core/blob/7c9aa42761be5fd0131c61dbe2b5323beb96d5dd/src/Admin/Controllers/AdminLogController.php"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-23T19:02:43Z",
    "nvd_published_at" : "2025-09-23T16:15:32Z"
  }
}