{"id":"CVE-2025-48495","published":"2025-06-02T11:08:07Z","modified":"2025-06-02T16:51:10Z","title":"Gokapi has stored XSS vulnerability in friendly name for API keys","vendor":"Forceu","product":"Gokapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00142,"percentile":0.03602,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-87","name":"Improper Neutralization of Alternate XSS Syntax"}],"references":[{"url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-4xg4-54hm-9j77","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8","tags":["x_refsource_MISC"]}],"priority":{"score":4.1,"factors":[{"name":"EPSS percentile","points":0.72},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"forceu","affectedVersions":[{"vendor":"Forceu","product":"Gokapi","versions":["< 2.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-02T16:50:34.450671Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/forceu/gokapi","vulnerableRanges":[">=1.0.1, <=1.9.6","<0.0.0-20250530185940-65ddbc68fbfd","all versions"],"patched":["0.0.0-20250530185940-65ddbc68fbfd"],"from":["GHSA-4xg4-54hm-9j77","GO-2025-3736"],"provenance":"source"}],"summary":{"text":"The stored cross-site scripting flaw in Forceu's Gokapi, a self-hosted file sharing server, lies in the friendly name field of API keys, where unsanitised input is rendered in the API key overview. An authenticated user who renames an API key with injected JavaScript can have that script run in the browser of another user who opens their API tab, which requires user interaction and an existing authenticated account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:05Z"},"euvd":{"id":"EUVD-2025-16636","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-forceu-gokapi-cve-2025-48494","children":[{"from":"CVE-2025-48495","to":"CVE-2025-48494","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/forceu/gokapi","fromFixed":"0.0.0-20250530185940-65ddbc68fbfd","toFixed":"0.0.0-20250530191232-343cc566cfd7","daysApart":0},{"kind":"same-code","provenance":"machine","files":["internal/webserver/web/static/js/min/admin.min.9.js"],"commits":["https://github.com/Forceu/Gokapi/commit/343cc566cfd7f4efcd522c92371561d494aed6b0","https://github.com/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.5,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2025-48495","published":"2025-06-02","fixed":"0.0.0-20250530185940-65ddbc68fbfd","kev":false},{"cve":"CVE-2025-48494","published":"2025-06-02","fixed":"0.0.0-20250530191232-343cc566cfd7","kev":false},{"cve":"CVE-2026-28682","published":"2026-03-06","fixed":"2.2.3","kev":false},{"cve":"CVE-2026-28683","published":"2026-03-06","fixed":"2.2.3","kev":false}],"package":"Go:github.com/forceu/gokapi"}}