{"id":"CVE-2025-48495","aliases":["CVE-2025-48495","GHSA-4xg4-54hm-9j77","GO-2025-3736"],"related":[],"kind":"vulnerability","state":"published","title":"Gokapi has stored XSS vulnerability in friendly name for API keys","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nBy 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.\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 not open the API page if you suspect that another user might have injected code.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gokapi has stored XSS vulnerability in friendly name for API keys in github.com/forceu/gokapi.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/forceu/gokapi before v2.0.0.","format":"markdown","source":"go"},{"lang":"es","text":"Gokapi es un servidor de intercambio de archivos autoalojado con expiración automática y compatibilidad con cifrado. Al renombrar el nombre descriptivo de una clave API, un usuario autenticado podía inyectar código JavaScript en la vista general de la clave API, que también se ejecutaba al acceder a su pestaña de API. Antes de la versión 2.0.0, no se implementaba un sistema de permisos de usuario; por lo tanto, todos los usuarios autenticados podían ver y modificar todos los recursos, incluso con cifrado de extremo a extremo, ya que la clave de cifrado debía ser la misma para todos los usuarios de versiones anteriores a la 2.0.0. Si un usuario es el único autenticado que usa Gokapi, no se ve afectado. Este problema se ha solucionado en la versión 2.0.0. Un workaround sería no abrir la página de la API si existe la posibilidad de que otro usuario haya inyectado código.","source":"nvd"}],"published":"2025-06-02T11:08:07.017Z","modified":"2026-06-17T09:29:43.187Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-87"],"affected":[{"ranges":[{"version":"< 2.0.0","status":"affected"}],"vendor":"Forceu","product":"Gokapi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.1","status":"affected","lastAffected":"1.9.6"}],"ecosystem":"Go","package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250530185940-65ddbc68fbfd"}],"ecosystem":"Go","package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"go"},{"ranges":[{"status":"affected","fixed":"2.0.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"}],"vendor":"forceu","product":"gokapi","cpe":"cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-4xg4-54hm-9j77","tags":["advisory","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48495","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/Forceu/Gokapi","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3736","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-02T16:50:34.450Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48495","url":"https://www.cve.org/CVERecord?id=CVE-2025-48495","licence":"CVE Terms of Use","modified":"2025-06-02T16:51:10.394Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4xg4-54hm-9j77","url":"https://github.com/advisories/GHSA-4xg4-54hm-9j77","licence":"CC-BY-4.0","modified":"2025-08-26T20:10:48.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3736","url":"https://pkg.go.dev/vuln/GO-2025-3736","licence":"CC-BY-4.0","modified":"2025-06-03T18:57:06.305Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48495","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48495","licence":"Public domain","modified":"2026-06-17T09:29:43.187Z"}],"updatedAt":"2026-11-25T22:58:58.652Z","epss":{"score":0.00142,"percentile":0.03751,"date":"2026-12-01T12:00:22.000Z"}}