Skip to content

Gokapi

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?

ProductAffected versions (from the sources)Fixed in
GokapiNiche< 2.0.02.0.0

What to do

Update to a fixed version: 2.0.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededHighAdmin or equivalentFrom the CVSS vector0.20
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.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
  1. Prerequisites multiplied together0.140
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.14 × threat 0.850.357
  4. Rounded to one decimal between 0.1 and 100.4

How the score works

Exploitation and evidence timeline

  1. 2 Jun 2025 Published
  2. 3 Dec 2026 Risk 0.4 (cvss fallback)

Weakness

CWE-79, CWE-87

References

Get alerts for Gokapi

Free email or text alerts when a vulnerability in Gokapi reaches risk 8 or higher. Nothing else.