Skip to content
Fencer Vulns
medium 5.4

CVE-2025-48494 json

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

published 2025-06-02 17 mo ago modified 2026-06-17 4 mo ago also GHSA-95rc-wc32-gm53 , GO-2025-3737 , EUVD-2025-16640

cvss
5.4
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 7%
public exploits
0
none known

Summary

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.

Patch / fix

  • go github.com/forceu/gokapi 0.0.0-20250530191232-343cc566cfd7
  • forceu gokapi 2.0.0
  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20250612T141001-1.1

opensuse advisories openSUSE-SU-2025:15225-1

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
17 mo ago

Exploit prediction

0.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 4.8 CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L
CNA 4.0 4.8 CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
go github.com/forceu/gokapi
>=1.0.1, <=1.9.6
<0.0.0-20250530191232-343cc566cfd7
all versions
0.0.0-20250530191232-343cc566cfd7

Affected products

  • Forceu Gokapi

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation
  • CWE-87 Improper Neutralization of Alternate XSS Syntax

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.