Description
mall4j through 4.0 contains an unrestricted file upload vulnerability in FileController endpoints that lack authorization checks and accept arbitrary file types without validation. Attackers with any authenticated token can upload HTML or SVG files that execute scripts in administrator browsers when accessed from the local storage path, resulting in stored cross-site scripting.
Published: 2026-09-28
Score: 2.1 Low
EPSS: n/a
KEV: No
Impact: Stored Cross‑Site Scripting through Unrestricted File Upload
Action: Apply Patch
AI Analysis

Impact

Mall4j versions up to 4.0 contain a file upload flaw within the FileController endpoints that fail to enforce proper authorization checks and accept any file type without validation. Attackers who possess an authenticated token can upload files such as HTML or SVG that contain malicious scripts, which are then stored on the server and executed when an administrator accesses them via the local storage path. This results in a stored cross‑site scripting (XSS) payload that targets browsers of users with administrative privileges. The vulnerability does not enable arbitrary code execution on the server, but it fully compromises the confidentiality and integrity of administrative sessions. The weakness corresponds to CWE‑434, Unrestricted Upload of File with Dangerous Type.

Affected Systems

The affected product is Mall4j by gz‑yami, specifically all releases up to and including version 4.0. No further version specifics are provided in the CNA data, so any deployment of Mall4j 4.0 or earlier is considered vulnerable.

Risk and Exploitability

The CVSS score of 2.1 indicates a low severity, yet the exploitability is substantial because any user who can obtain an authenticated token can trigger the upload. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting that large‑scale exploitation has not yet been observed. The attack path involves authenticating to the application, accessing the vulnerable file upload endpoint, and uploading a crafted <script>–bearing HTML or SVG file. Once stored, the payload activates conditionally when an administrator opens the file, leading to XSS; administrators become the attack vector for broader compromise of the application. The overall risk is moderate for environments where administrative privileges are broadly granted or where the upload directory is accessible to users.

Generated by OpenCVE AI on September 29, 2026 at 00:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a later version of Mall4j that fixes the file‑upload authorization and type‑validation checks.
  • If an immediate upgrade is not possible, reconfigure the FileController to allow uploads only for image MIME types (e.g., image/png, image/jpeg) and reject all HTML or SVG content.
  • Enforce strong access controls on upload endpoints so that only privileged administrators with the appropriate role can upload files.
  • Move the upload directory outside of the web root or protect it with access restrictions so that stored files cannot be accessed directly via a browser.
  • Apply an additional content‑security‑policy (CSP) header in the application to further mitigate the impact of any inadvertently stored XSS scripts.

Generated by OpenCVE AI on September 29, 2026 at 00:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 28 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Description mall4j through 4.0 contains an unrestricted file upload vulnerability in FileController endpoints that lack authorization checks and accept arbitrary file types without validation. Attackers with any authenticated token can upload HTML or SVG files that execute scripts in administrator browsers when accessed from the local storage path, resulting in stored cross-site scripting.
Title mall4j through 4.0 Unrestricted File Upload in Admin File Endpoints
Weaknesses CWE-434
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-28T23:34:30.573Z

Reserved: 2026-09-28T22:50:19.946Z

Link: CVE-2026-102366

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-29T00:17:03.917

Modified: 2026-09-29T00:17:03.917

Link: CVE-2026-102366

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-29T00:30:08Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type