Skip to content

Gokapi

Gokapi vulnerable to stored XSS via uploading file with malicious file name

CVE-2025-48494Published 2 Jun 2025, 11:03 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. When using end-to-end encryption, a stored cross-site scripting vulnerability can be exploited by uploading a file with JavaScript code embedded in the filename. After upload and every time someone opens the upload list, the script is then parsed. 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 using a version 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 possible workaround would be to disable end-to-end encryption.

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.2% chance of exploitation in 30 days (percentile 8), 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.