Security mailing lists by PureSourceCode

CVE-2025-48494

MEDIUM 4.8CVSS 4.0

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

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.

Published
2 Jun 2025
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-79CWE-87
Also known as
GHSA-95rc-wc32-gm53GO-2025-3737
Sources
NVDJSONOSV GHSA-95rc-wc32-gm53JSONOSV GO-2025-3737JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 MEDIUM 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
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD forceu gokapi
cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:*
< 2.0.0 2.0.0
NVD forceu gokapi
cpe:2.3:a:forceu:gokapi:2.0.0:beta1:*:*:*:*:*:*
= 2.0.0
NVD forceu gokapi
cpe:2.3:a:forceu:gokapi:2.0.0:beta2:*:*:*:*:*:*
= 2.0.0
OSV Go github.com/forceu/gokapi >= 1.0.1, <= 1.9.6
OSV Go github.com/forceu/gokapi < 0.0.0-20250530191232-343cc566cfd7 0.0.0-20250530191232-343cc566cfd7
OSV Go github.com/forceu/gokapi all versions

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 2 Jun 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Jun 2025)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 Jun 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.