{"cve":"CVE-2025-48495","nvd":{"published":"2025-06-02T12:15:25.380","modified":"2026-06-17T09:29:43.187","status":"Analyzed","description":"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.","cvss_v4":{"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},"cvss_v3":{"version":"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},"cwes":["CWE-79","CWE-87"],"references":["https://github.com/Forceu/Gokapi/commit/65ddbc68fbfdf1c80cadb477f4bcbb7f2c4fdbf8","https://github.com/Forceu/Gokapi/security/advisories/GHSA-4xg4-54hm-9j77"],"products":["forceu:gokapi"],"source":"nvd","synced_at":"2026-10-19T22:02:23.998251710+00:00"},"epss":{"cve":"CVE-2025-48495","score":0.00142,"percentile":0.03504,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4xg4-54hm-9j77","url":"https://osv.dev/vulnerability/GHSA-4xg4-54hm-9j77","summary":"Gokapi has stored XSS vulnerability in friendly name for API keys","modified":"2025-08-26T20:10:48Z","packages":[{"ecosystem":"Go","name":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","ranges":[">=1.0.1 <=1.9.6"],"fixed":[]},{"ecosystem":"Go","name":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","ranges":["<0.0.0-20250530185940-65ddbc68fbfd"],"fixed":["0.0.0-20250530185940-65ddbc68fbfd"]}]},{"id":"GO-2025-3736","url":"https://osv.dev/vulnerability/GO-2025-3736","summary":"Gokapi has stored XSS vulnerability in friendly name for API keys in github.com/forceu/gokapi","modified":"2025-06-03T18:57:06.305680Z","packages":[{"ecosystem":"Go","name":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}