Read the docs
TI-2025-30774 Aliases CVE-2025-48495GHSA-4xg4-54hm-9j77

Gokapi has stored XSS vulnerability in friendly name for API keys

Priority LOW 21CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Cross-site scripting
Confidentiality · integrity · availability
None · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00142 3rd percentileScored 2026-11-07
Fix Fixed Gokapi (Forceu): 2.0.0github.com/forceu/gokapi (Go): 0.0.0-20250530185940-65ddbc68fbfd

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ForceuGokapibefore 2.0.02.0.0Patch availableCNA
—github.com/forceu/gokapi (Go)1.0.1 – 1.9.6—No fix listedGHSA-4xg4-54hm-9j77
—github.com/forceu/gokapi (Go)before 0.0.0-20250530185940-65ddbc68fbfd0.0.0-20250530185940-65ddbc68fbfdPatch availableGHSA-4xg4-54hm-9j77
  • Gokapi VendorForceu Affected before 2.0.0 Fixed in 2.0.0 Patch available CNA
  • github.com/forceu/gokapi (Go) Vendor— Affected 1.0.1 – 1.9.6 Fixed in — No fix listed GHSA-4xg4-54hm-9j77
  • github.com/forceu/gokapi (Go) Vendor— Affected before 0.0.0-20250530185940-65ddbc68fbfd Fixed in 0.0.0-20250530185940-65ddbc68fbfd Patch available GHSA-4xg4-54hm-9j77

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:*before 2.0.0VulnerableForceu
cpe:2.3:a:forceu:gokapi:2.0.0:beta1:*:*:*:*:*:*2.0.0 beta1VulnerableForceu
cpe:2.3:a:forceu:gokapi:2.0.0:beta2:*:*:*:*:*:*2.0.0 beta2VulnerableForceu
  • cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:* Versions before 2.0.0 Vulnerable ·Forceu
  • cpe:2.3:a:forceu:gokapi:2.0.0:beta1:*:*:*:*:*:* Versions 2.0.0 beta1 Vulnerable ·Forceu
  • cpe:2.3:a:forceu:gokapi:2.0.0:beta2:*:*:*:*:*:* Versions 2.0.0 beta2 Vulnerable ·Forceu

Remediation

  • Fix · CNA Gokapi (Forceu) Fixed in 2.0.0
  • Fix · GHSA-4xg4-54hm-9j77 github.com/forceu/gokapi (Go) Fixed in 0.0.0-20250530185940-65ddbc68fbfd Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-48495
  2. 2026-10-03 Alias added: GHSA-4xg4-54hm-9j77

References

  • TI-2026-22898 Gokapi: Stored XSS in SVG Hotlinks CVSS 3.1HIGH 8.7
  • TI-2026-23780 Gokapi vulnerable to DoS in E2E Metadata Parser CVSS 3.1MEDIUM 6.5
  • TI-2026-22897 Gokapi: Data Leak in Upload Status Stream CVSS 3.1MEDIUM 6.4
  • TI-2026-23206 Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion CVSS 3.1MEDIUM 5.4
  • TI-2026-23205 Gokapi: Privilege escalation with auth token CVSS 3.1MEDIUM 5.0
  • TI-2025-30773 Gokapi vulnerable to stored XSS via uploading file with malicious file name CVSS 4.0MEDIUM 4.8
See all 9 →

Sources