# CVE-2025-48494: Gokapi vulnerable to stored XSS via uploading file with malicious file name

- Severity: Medium 4.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L`
- 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.31%, higher than 17% of CVEs (2026-11-30)
- Published: 2025-06-02T11:03:52.689Z
- Modified: 2026-06-17T09:29:43.067Z
- Also known as: GHSA-95rc-wc32-gm53, GO-2025-3737
- Weaknesses: CWE-79, CWE-87
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. When using end-to-end encryption, a stored cross-site scripting vulnerability can be exploited by uploading a file with JavaScript code embedded in the filename. After upload and every time someone opens the upload list, the script is then parsed. Prior to version 2.0.0, there was no user permission system implemented, therefore all authenticated users were already able to see and modify all resources, even if end-to-end encrypted, as the encryption key had to be the same for all users using a version prior to 2.0.0. If a user is the only authenticated user using Gokapi, they are not affected. This issue has been fixed in v2.0.0. A possible workaround would be to disable end-to-end encryption.

(As written by CVE List.)

## Affected

- Forceu Gokapi: < 2.0.0; before 2.0.0; 2.0.0
- github.com/forceu/gokapi (Go): from 1.0.1 up to 1.9.6; before 0.0.0-20250530191232-343cc566cfd7; all versions

## Every score

- GitHub_M: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Forceu/Gokapi/security/advisories/GHSA-95rc-wc32-gm53> (advisory, third-party-advisory, web)
- <https://github.com/Forceu/Gokapi/commit/343cc566cfd7f4efcd522c92371561d494aed6b0> (patch, web)
- <https://github.com/Forceu/Gokapi/releases/tag/v2.0.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48494> (advisory)
- <https://github.com/Forceu/Gokapi> (package)
- <https://pkg.go.dev/vuln/GO-2025-3737> (web)

## Sources

- CVE List: [CVE-2025-48494](https://www.cve.org/CVERecord?id=CVE-2025-48494), CVE Terms of Use, modified 2025-06-02
- GitHub Advisory Database: [GHSA-95rc-wc32-gm53](https://github.com/advisories/GHSA-95rc-wc32-gm53), CC-BY-4.0, modified 2025-08-26
- Go Vulnerability Database: [GO-2025-3737](https://pkg.go.dev/vuln/GO-2025-3737), CC-BY-4.0, modified 2025-06-03
- NVD: [CVE-2025-48494](https://nvd.nist.gov/vuln/detail/CVE-2025-48494), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-48494 · Whole record: https://cve.day/CVE-2025-48494.json · Rebuilt by cve.day 2026-11-25T22:58:58.650Z
