5.4

CVE-2025-48495: Gokapi has stored XSS vulnerability in friendly name for API keys

Analyzed
AliasesGHSA-4xg4-54hm-9j77GO-2025-3736
Published 02-06-2025Last modified 02-06-2025

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.

Priority
Routine

Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.4/10
010
Medium · v3.1 (NVD)
EPSS score
0.14%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 02-06-2025
    PublishedVulnerability first disclosed.
  2. 02-06-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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