Gokapi has stored XSS vulnerability in friendly name for API keys
CVE-2025-48495Published 2 Jun 2025, 11:08 UTC
Real-world risk
0.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.8
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| GokapiNiche | < 2.0.0 | 2.0.0 |
What to do
Update to a fixed version: 2.0.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.1% chance of exploitation in 30 days (percentile 4), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.140
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.14 × threat 0.850.357
- Rounded to one decimal between 0.1 and 100.4
Exploitation and evidence timeline
- 2 Jun 2025 Published
- 3 Dec 2026 Risk 0.4 (cvss fallback)
Weakness
CWE-79, CWE-87