# CVE-2025-48495: Gokapi has stored XSS vulnerability in friendly name for API keys

- 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.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2025-06-02T11:08:07.017Z
- Modified: 2026-06-17T09:29:43.187Z
- Also known as: GHSA-4xg4-54hm-9j77, GO-2025-3736
- 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. By renaming the friendly name of an API key, an authenticated user could inject JS into the API key overview, which would also be executed when another user clicks on his API tab. 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 of versions 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 workaround would be to not open the API page if it is possible that another user might have injected code.

(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-20250530185940-65ddbc68fbfd; 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:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- 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-4xg4-54hm-9j77> (advisory, third-party-advisory, web)
- <https://github.com/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48495> (advisory)
- <https://github.com/Forceu/Gokapi> (package)
- <https://pkg.go.dev/vuln/GO-2025-3736> (web)

## Sources

- CVE List: [CVE-2025-48495](https://www.cve.org/CVERecord?id=CVE-2025-48495), CVE Terms of Use, modified 2025-06-02
- GitHub Advisory Database: [GHSA-4xg4-54hm-9j77](https://github.com/advisories/GHSA-4xg4-54hm-9j77), CC-BY-4.0, modified 2025-08-26
- Go Vulnerability Database: [GO-2025-3736](https://pkg.go.dev/vuln/GO-2025-3736), CC-BY-4.0, modified 2025-06-03
- NVD: [CVE-2025-48495](https://nvd.nist.gov/vuln/detail/CVE-2025-48495), Public domain, modified 2026-06-17

---

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