{"schema_version":"1.7.3","id":"GHSA-95rc-wc32-gm53","published":"2025-06-03T06:28:08Z","modified":"2025-08-26T20:09:18Z","aliases":["CVE-2025-48494","GO-2025-3737"],"summary":"Gokapi vulnerable to stored XSS via uploading file with malicious file name","details":"### Impact\n\nWhen using end-to-end encryption, a stored XSS 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.\n\nWith the affected versions <v2.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 with <v2.0. Nethertheless with XSS, other attack vectors like redirection or crypto mining would be possble.\n\n### Patches\n\nThis CVE has been fixed in v2.0.0\n\n### Workarounds\n\nIf you are the only authenticated user using Gokapi, you are not affected. A workaround would be to disable end-to-end encryption.","affected":[{"package":{"name":"github.com/forceu/gokapi","ecosystem":"Go","purl":"pkg:golang/github.com/forceu/gokapi"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.1"},{"last_affected":"1.9.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-95rc-wc32-gm53/GHSA-95rc-wc32-gm53.json"}},{"package":{"name":"github.com/forceu/gokapi","ecosystem":"Go","purl":"pkg:golang/github.com/forceu/gokapi"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20250530191232-343cc566cfd7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-95rc-wc32-gm53/GHSA-95rc-wc32-gm53.json"}}],"references":[{"type":"WEB","url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-95rc-wc32-gm53"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48494"},{"type":"WEB","url":"https://github.com/Forceu/Gokapi/commit/343cc566cfd7f4efcd522c92371561d494aed6b0"},{"type":"PACKAGE","url":"https://github.com/Forceu/Gokapi"},{"type":"WEB","url":"https://github.com/Forceu/Gokapi/releases/tag/v2.0.0"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2025-3737"}],"database_specific":{"cwe_ids":["CWE-79","CWE-87"],"github_reviewed":true,"github_reviewed_at":"2025-06-03T06:28:08Z","nvd_published_at":"2025-06-02T11:15:22Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V4","score":"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"}]}