ADVISORIES

Vulnerability

CVE-2025-48494

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.

3 advisories report this vulnerability, across 2 ecosystems.

Medium severity All Go 2openSUSE 1

Advisories

  • GHSA-95rc-wc32-gm53

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

    Moderate CVE-2025-48494 Go Updated 26 August 2025
  • GO-2025-3737

    Gokapi vulnerable to stored XSS via uploading file with malicious file name in github.com/forceu/gokapi

    CVE-2025-48494 Go Updated 3 June 2025
  • openSUSE-SU-2025:15225-1

    govulncheck-vulndb-0.0.20250612T141001-1.1 on GA media

    CVE-2020-36846CVE-2022-31022CVE-2023-42818CVE-2025-0913 openSUSE Updated 23 March 2026

References