CVE-2025-48495
Gokapi has stored XSS vulnerability in friendly name for API keys
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- Passive
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.8
Gokapi has stored XSS vulnerability in friendly name for API keys
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.
- Record
CVE-2025-48495- 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 - Weakness
- CWE-79, CWE-87
- Updated
- 2026-11-02
EUVDEUVD-2025-16636
4.8
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.
- Record
EUVD-2025-16636- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4xg4-54hm-9j77
4.8
Gokapi has stored XSS vulnerability in friendly name for API keys
Impact
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. With the affected versions <v2.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 with <v2.0. Nethertheless with XSS, other attack vectors like redirection or crypto mining would be possble.
Patches
This CVE has been fixed in v2.0.0
Workarounds
If you are the only authenticated user using Gokapi, you are not affected. A workaround would be to not open the API page if you suspect that another user might have injected code.
- Record
GHSA-4xg4-54hm-9j77- 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 - 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 - Weakness
- CWE-79, CWE-87
- Updated
- 2026-11-02
NVD
4.8
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.
- Record
CVE-2025-48495- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - 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 - Weakness
- CWE-79, CWE-87
- Updated
- 2026-11-02
OSV
4.8
Gokapi has stored XSS vulnerability in friendly name for API keys
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.
- Record
CVE-2025-48495- 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 - Weakness
- CWE-79, CWE-87
- Updated
- 2026-11-02
OSVGHSA-4xg4-54hm-9j77
4.8
Gokapi has stored XSS vulnerability in friendly name for API keys
Impact
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. With the affected versions <v2.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 with <v2.0. Nethertheless with XSS, other attack vectors like redirection or crypto mining would be possble.
Patches
This CVE has been fixed in v2.0.0
Workarounds
If you are the only authenticated user using Gokapi, you are not affected. A workaround would be to not open the API page if you suspect that another user might have injected code.
- Record
GHSA-4xg4-54hm-9j77- 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 - 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 - Weakness
- CWE-79, CWE-87
- Updated
- 2026-11-02
OSVGO-2025-3736 No score
Gokapi has stored XSS vulnerability in friendly name for API keys in github.com/forceu/gokapi
Gokapi has stored XSS vulnerability in friendly name for API keys in github.com/forceu/gokapi.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/forceu/gokapi before v2.0.0.
- Record
GO-2025-3736- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15225-1 No score
govulncheck-vulndb-0.0.20250612T141001-1.1 on GA media
These are all security issues fixed in the govulncheck-vulndb-0.0.20250612T141001-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15225-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/forceu/gokapiGo |
1.0.1 to 1.9.6 | None known |
github.com/forceu/gokapiGo |
before 0.0.0-20250530185940-65ddbc68fbfd | 0.0.0-20250530185940-65ddbc68fbfd |
github.com/forceu/gokapiGo |
All versions | None known |
govulncheck-vulndbopenSUSE:Tumbleweed From an advisory covering 29 CVEs |
before 0.0.20250612T141001-1.1 | 0.0.20250612T141001-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-48495 is a medium vulnerability (CVSS 4.8) in Forceu Gokapi, published June 2, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.14%, the 3rd percentile. Fixed in github.com/forceu/gokapi 0.0.0-20250530185940-65ddbc68fbfd.
References
github.com/Forceu/Gokapi/security/advisories/GHSA-4xg4-54hm-9j77
github.com/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8
nvd.nist.gov/vuln/detail/CVE-2025-48495
pkg.go.dev/vuln/GO-2025-3736
github.com/advisories/GHSA-4xg4-54hm-9j77
github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48495.json
Show 30 moreShow less
github.com/Forceu/Gokapi
suse.com/security/cve/CVE-2020-36846
suse.com/security/cve/CVE-2022-31022
suse.com/security/cve/CVE-2023-42818
suse.com/security/cve/CVE-2025-0913
suse.com/security/cve/CVE-2025-1792
suse.com/security/cve/CVE-2025-22874
suse.com/security/cve/CVE-2025-25207
suse.com/security/cve/CVE-2025-25208
suse.com/security/cve/CVE-2025-2571
suse.com/security/cve/CVE-2025-29785
suse.com/security/cve/CVE-2025-3230
suse.com/security/cve/CVE-2025-3260
suse.com/security/cve/CVE-2025-3454
suse.com/security/cve/CVE-2025-3611
suse.com/security/cve/CVE-2025-3913
suse.com/security/cve/CVE-2025-4128
suse.com/security/cve/CVE-2025-4573
suse.com/security/cve/CVE-2025-4673
suse.com/security/cve/CVE-2025-47950
suse.com/security/cve/CVE-2025-48494
suse.com/security/cve/CVE-2025-48495
suse.com/security/cve/CVE-2025-48710
suse.com/security/cve/CVE-2025-48865
suse.com/security/cve/CVE-2025-48938
suse.com/security/cve/CVE-2025-48948
suse.com/security/cve/CVE-2025-48949
suse.com/security/cve/CVE-2025-49011
suse.com/security/cve/CVE-2025-49136
suse.com/security/cve/CVE-2025-49140