CVE-2026-102366

mall4j through 4.0 Unrestricted File Upload in Admin File Endpoints

Published Sep 28, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Gz-yami
Gz-yami mall4j
Vendors & Products Gz-yami
Gz-yami mall4j
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 29, 2026, 10:49 AM
Reserved
Sep 28, 2026, 10:50 PM
Status
Deferred
Published
Sep 29, 2026, 12:17 AM
Modified
Sep 30, 2026, 5:32 PM