CVE-2025-48495 Details
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.
A cross-site scripting (XSS) vulnerability has been identified in Gokapi, a self-hosted file sharing server, prior to version 2.0.0. This issue allows authenticated users to inject JavaScript into the API key overview by renaming the friendly name of an API key. The injected script would be executed when another user accesses their API tab. In versions prior to 2.0.0, Gokapi lacked a user permission system, enabling all authenticated users to view and modify all resources, including end-to-end encrypted files, as the encryption key was shared among all users. However, if a user is the only authenticated user on Gokapi, they are not affected by this vulnerability.
Users can upgrade to Gokapi version 2.0.0 or later, where this vulnerability has been fixed. If multiple users are using Gokapi, avoid opening the API page if there is a possibility that another user has injected code.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-87 | Improper Neutralization of Alternate XSS Syntax | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| forceu gokapi | < 2.0.0 2.0.0 beta1 2.0.0 beta2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 9, 2026 | Modified Analysis | [email protected] |
| Aug 26, 2025 | Initial Analysis | [email protected] |
| Jun 2, 2025 | New CVE Received | [email protected] |