{"id":"CVE-2025-48494","published":"2025-06-02T11:03:52Z","modified":"2025-06-02T13:05:27Z","title":"Gokapi vulnerable to stored XSS via uploading file with malicious file name","vendor":"Forceu","product":"Gokapi","tier":"tail","description":{"text":"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.","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.00177,"percentile":0.07458,"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-95rc-wc32-gm53","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Forceu/Gokapi/commit/343cc566cfd7f4efcd522c92371561d494aed6b0","tags":["x_refsource_MISC"]},{"url":"https://github.com/Forceu/Gokapi/releases/tag/v2.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":4.9,"factors":[{"name":"EPSS percentile","points":1.49},{"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-02T13:05:21.970043Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/forceu/gokapi","vulnerableRanges":[">=1.0.1, <=1.9.6","<0.0.0-20250530191232-343cc566cfd7","all versions"],"patched":["0.0.0-20250530191232-343cc566cfd7"],"from":["GHSA-95rc-wc32-gm53","GO-2025-3737"],"provenance":"source"}],"summary":{"text":"Gokapi, a self-hosted file sharing server, contains a stored cross-site scripting flaw in its upload list when end-to-end encryption is enabled, where JavaScript embedded in an uploaded file's name is parsed when the upload list is opened. An attacker with authenticated access to the server who has the ability to upload files can trigger this by uploading a file with a crafted name, and user interaction is needed in that the script runs each time someone views the upload list, with no additional configuration beyond end-to-end encryption being in use.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:08Z"},"euvd":{"id":"EUVD-2025-16640","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-forceu-gokapi-cve-2025-48494","parents":[{"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},{"cve":"CVE-2026-29060","published":"2026-03-06","fixed":"2.2.3","kev":false}],"package":"Go:github.com/forceu/gokapi"}}