Security mailing lists by PureSourceCode

CVE-2025-48495

MEDIUM 4.8CVSS 4.0

Gokapi has stored XSS vulnerability in friendly name for API keys

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.

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-4xg4-54hm-9j77GO-2025-3736
Sources
NVDJSONOSV GHSA-4xg4-54hm-9j77JSONOSV GO-2025-3736JSON

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
OSV GitHub 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-20250530185940-65ddbc68fbfd 0.0.0-20250530185940-65ddbc68fbfd
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.