# CVE-2026-102366: mall4j through 4.0 Unrestricted File Upload in Admin File Endpoints

- Severity: Low 2.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-28T23:34:30.573Z
- Modified: 2026-09-30T17:32:07.107Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- gz-yami mall4j: up to 4.0

## Every score

- VulnCheck: CVSS:4.0 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`
- VulnCheck: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/LinYuanyi1/cve-request-poc/blob/114b3f0d149e50a7678f591bf8043399fc9ac96c/mall4j/A03_admin_file_upload_xss.py> (exploit)
- <https://github.com/gz-yami/mall4j> (product)
- <https://github.com/gz-yami/mall4j/blob/ffc672fc1aa4320ce02d0b93853bb456ae0a4dae/yami-shop-admin/src/main/java/com/yami/shop/admin/controller/FileController.java#L44-L64> (technical-description)
- <https://github.com/gz-yami/mall4j/blob/ffc672fc1aa4320ce02d0b93853bb456ae0a4dae/yami-shop-service/src/main/java/com/yami/shop/service/impl/AttachFileServiceImpl.java#L62-L81> (technical-description)
- <https://www.vulncheck.com/advisories/mall4j-through-4.0-unrestricted-file-upload-in-admin-file-endpoints> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-102366](https://www.cve.org/CVERecord?id=CVE-2026-102366), CVE Terms of Use, modified 2026-09-29
- NVD: [CVE-2026-102366](https://nvd.nist.gov/vuln/detail/CVE-2026-102366), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-102366 · Whole record: https://cve.day/CVE-2026-102366.json · Rebuilt by cve.day 2026-11-25T22:59:41.406Z
