Skip to main content

mall4j EUVDEUVD-2026-88582

| CVE-2026-102366 LOW
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-09-29 disclosure@vulncheck.com GHSA-ffmx-jjx9-c9cx
2.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain any authenticated admin-panel token
  2. Delivery
    Upload malicious HTML/SVG via FileController
  3. Exploit
    File stored without type validation
  4. Execution
    Admin opens file from storage path
  5. Persist
    Script executes in admin browser
  6. Impact
    Session hijack / admin-context actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK

2 techniques across 2 tactics: Command and Control, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a valid authenticated token to the mall4j admin backend (PR:L) - the FileController upload endpoints lack authorization checks, so any authenticated user, not just admins, can reach them. The attacker uploads HTML or SVG files that are accepted without file-type validation (CWE-434). Exploitation then depends on an administrator subsequently opening/accessing the uploaded file directly from the local storage path (UI:P/UI:R), at which point the embedded script executes in the admin's browser. Limiting factors: exploitation is not fully unauthenticated (a token is needed), impact is client-side stored XSS rather than server-side code execution, and it hinges on victim interaction by a privileged user; affects mall4j through version 4.0.

Impact

Real-world risk is modest despite the availability of public exploit code. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:P) yields only 2.1 because impact is confined to low confidentiality/integrity on a subsequent system (SC:L/SI:L) via stored XSS - there is no direct code execution, and both an authenticated token (PR:L) and victim interaction (UI:P - an admin must open the uploaded file from the local storage path) are required. A public POC exists (github LinYuanyi1, the same researcher behind other mall4j findings), which is the primary escalating signal, but there is no EPSS score and no CISA KEV listing, so this is 'publicly available exploit code exists' - NOT active exploitation. The AT:P (attack-requirement/'passive' interaction) plus PR:L plus UI:P chain means exploitation is conditional rather than trivially automatable. Note a signal tension worth flagging: CWE-434 (unrestricted file upload) normally implies a path toward webshell/RCE, but this CVE's described impact stops at stored XSS - the uploaded HTML/SVG executes as script in the browser rather than server-side, so the low CVSS is consistent with the described impact and should not be inflated to RCE without verification. Net: a genuine but low-priority issue - patch in normal cadence, not an emergency.

Exploit ScenarioDerived

An attacker who has obtained any low-privilege authenticated token to the mall4j admin backend uploads a crafted .html or .svg file through the unprotected FileController upload endpoint, which performs no authorization or file-type validation. When an administrator later opens that file from the local storage path, the embedded script executes in the admin's browser session (stored XSS), enabling session/credential theft or admin-context actions. A working POC (A03_admin_file_upload_xss.py) is publicly available on GitHub.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 29, 2026

Stored cross-site scripting in mall4j through 4.0 arises from unrestricted file uploads in admin FileController endpoints that require only any valid authenticated token and do not validate uploaded file types. An authenticated attacker can upload HTML or SVG files that execute script in an administrator's browser when the administrator opens the uploaded file from the local storage path, and publicly available exploit code exists. Real-world risk is modest because exploitation requires a token and privileged-user interaction, and the impact is client-side stored XSS rather than server-side code execution.

RemediationAI

No vendor-released patch is identified in the provided advisory data, so upgrade to a fixed mall4j release if one becomes available and validate that the FileController endpoints enforce authorization. Until then, apply compensating controls: enforce role-based authorization on all upload endpoints so ordinary authenticated users cannot reach administrative file-upload paths; implement a server-side allowlist of safe file extensions and MIME types that excludes HTML, SVG, and other script-capable formats; store uploaded files outside the web root or on a separate origin and serve them with Content-Disposition: attachment and X-Content-Type-Options: nosniff. If SVG uploads are required, sanitize them by removing script elements, event-handler attributes, and external references, or render them through a hardened conversion process; these restrictions may break legitimate previews or rich-media workflows. Add a restrictive Content-Security-Policy on administrator pages to reduce script execution from stored files, and review the VulnCheck advisory at https://www.vulncheck.com/advisories/mall4j-through-4.0-unrestricted-file-upload-in-admin-file-endpoints plus the public proof-of-concept at https://github.com/LinYuanyi1/cve-request-poc/blob/114b3f0d149e50a7678f591bf8043399fc9ac96c/mall4j/A03_admin_file_upload_xss.py to test for exposure.

Affected VersionsENISA

mall4j 0 ≤4.0

Affected Packages

euvd mall4j no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is CWE-434 unrestricted upload of a file with a dangerous type, located in the mall4j Java e-commerce application. Source references point to yami-shop-admin FileController.java lines 44-64 and yami-shop-service AttachFileServiceImpl.java lines 62-81 in the gz-yami/mall4j repository, where upload handling accepts arbitrary file types without validation and lacks authorization checks on the FileController endpoints. Because HTML and SVG files can contain script, an uploaded file accessed from the local storage path renders in an administrator's browser and executes in that origin, producing stored cross-site scripting. No CPE strings were included in the provided data, but the source references identify the affected modules and the public VulnCheck advisory provides additional affected-product context. The independent assessment rates this CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, consistent with low-impact client-side script execution that depends on victim interaction after authenticated upload.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 2.1 LOW
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
vuln.today AI 5.4 MEDIUM

Authenticated upload (PR:L) over network, admin must open the file (UI:R); stored XSS crosses into the admin browser context (S:C) with limited confidentiality/integrity impact and no availability effect.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
gz-yami open-source Spring Boot B2B2C e-commerce platform, popular in China
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy