CVE-2025-48495: Gokapi has stored XSS vulnerability in friendly name for API keys
Vulnerability summary
CVE-2025-48495 is a medium (CVSS 5.4) vulnerability in forceu gokapi. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.5% of scored vulnerabilities.
Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 02-06-2025PublishedVulnerability first disclosed.
- 02-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated4.8MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L
- NVDNIST4.8MediumCVSS: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
- OSV · GoEcosystem advisory · calculated5.4MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.14%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.13% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-79Improper Neutralization of Input During Web Page GenerationThe product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-87Improper Neutralization of Alternate XSS SyntaxThe product does not neutralize or incorrectly neutralizes user-controlled input for alternate script syntax.
Affected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Forceu1 product
- gokapi< 2.0.0 | 2.0.0:beta1 | 2.0.0:beta2
Github.com/forceu1 product
- gokapi≥ 1.0.1, ≤ 1.9.6 | < 0.0.0-20250530185940-65ddbc68fbfd | All versions (No fix recorded)
2 vendors · 2 products
References
5 links- github.com/Forceu/Gokapi/security/advisories/GHSA-4xg4-54hm-9j77X Refsource CONFIRMWEBAdvisoryThird Party Advisory
- github.com/Forceu/GokapiPACKAGE