Gokapi vulnerable to stored XSS via uploading file with malicious file name
Published 3 Jun 2025 · Updated 26 Aug 2025
Is your project on an affected github.com/forceu/gokapi?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=1.0.1 <=1.9.6
- Fixed in
- No fix released
- Affected
- <0.0.0-20250530191232-343cc566cfd7
- Fixed in
- 0.0.0-20250530191232-343cc566cfd7
go get github.com/forceu/gokapi@v0.0.0-20250530191232-343cc566cfd7Details
Impact
When 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.
With 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.
Patches
This CVE has been fixed in v2.0.0
Workarounds
If you are the only authenticated user using Gokapi, you are not affected. A workaround would be to disable end-to-end encryption.
Is GHSA-95rc-wc32-gm53 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/forceu/gokapi, and gives you the command that fixes it.
More advisories for github.com/forceu/gokapi
- LowCVE-2026-30961Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload in github.com/forceu/gokapi · 16 Mar 2026
- LowCVE-2026-30943Gokapi vulnerable to Privilege Escalation in File Replace in github.com/forceu/gokapi · 16 Mar 2026
- LowCVE-2026-30955Gokapi vulnerable to DoS in E2E Metadata Parser in github.com/forceu/gokapi · 16 Mar 2026
- MediumCVE-2026-30961Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload · 13 Mar 2026
- MediumCVE-2026-30955Gokapi vulnerable to DoS in E2E Metadata Parser · 13 Mar 2026
- MediumCVE-2026-30943Gokapi vulnerable to Privilege Escalation in File Replace · 13 Mar 2026
References
- Linkgithub.com/Forceu/Gokapi/security/advisories/GHSA-95rc-wc32-gm53
- Advisorynvd.nist.gov/vuln/detail/CVE-2025-48494
- Linkgithub.com/Forceu/Gokapi/commit/343cc566cfd7f4efcd522c92371561d494aed6b0
- Packagegithub.com/Forceu/Gokapi
- Linkgithub.com/Forceu/Gokapi/releases/tag/v2.0.0
- Linkpkg.go.dev/vuln/GO-2025-3737
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.