CVE-2025-48495 json
Gokapi has stored XSS vulnerability in friendly name for API keys
published 2025-06-02 17 mo ago modified 2026-06-17 4 mo ago also GHSA-4xg4-54hm-9j77 , GO-2025-3736 , EUVD-2025-16636
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/forceu/gokapi 0.0.0-20250530185940-65ddbc68fbfd
- forceu gokapi 2.0.0
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250612T141001-1.1
opensuse advisories openSUSE-SU-2025:15225-1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 17 mo ago
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 4.8 | 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 |
| CNA | 4.0 | 4.8 | 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 |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/forceu/gokapi | >=1.0.1, <=1.9.6 <0.0.0-20250530185940-65ddbc68fbfd all versions |
0.0.0-20250530185940-65ddbc68fbfd |
Affected products
- Forceu Gokapi
Classification
References
-
github.com
/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8
web, patch
-
github.com
/Forceu/Gokapi/security/advisories/GHSA-4xg4-54hm-9j77
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-48495
advisory
-
github.com
/Forceu/Gokapi
package
-
pkg.go.dev
/vuln/GO-2025-3736
web
Sources
- CVE List CVE-2025-48495
- GitHub Advisory GHSA-4xg4-54hm-9j77
- NVD CVE-2025-48495
- OSV GO-2025-3736
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.