MediumGHSA-4xg4-54hm-9j77CVE-2025-48495GO-2025-3736

Gokapi has stored XSS vulnerability in friendly name for API keys

Published 3 Jun 2025 · Updated 26 Aug 2025

Is your project on an affected github.com/forceu/gokapi?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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-20250530185940-65ddbc68fbfd
Fixed in
0.0.0-20250530185940-65ddbc68fbfd
Update to the fixed version for your release line, for example:go get github.com/forceu/gokapi@v0.0.0-20250530185940-65ddbc68fbfd

Details

Impact

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. 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 not open the API page if you suspect that another user might have injected code.

Is GHSA-4xg4-54hm-9j77 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
All 19 advisories for github.com/forceu/gokapi

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.