{"answers":{"affected":"5 open source packages ship an affected version, including github.com/forceu/gokapi. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-48495 in the wild and no public exploit code.","fix":"Upgrade github.com/forceu/gokapi to 0.0.0-20250530185940-65ddbc68fbfd or later.","what":"CVE-2025-48495 is a medium-severity cross-site scripting vulnerability in Forceu Gokapi, published on 2 Jun 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-48495 and fix it if it is affected.\n\nWhat it is: CVE-2025-48495 is a medium-severity cross-site scripting vulnerability in Forceu Gokapi, published on 2 Jun 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-48495 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/forceu/gokapi (Go): affected all versions; no fix listed\n- github.com/forceu/gokapi (Go): affected all versions; fixed in 0.0.0-20250530185940-65ddbc68fbfd\n- github.com/forceu/gokapi (Go): affected all versions; fixed in 0.0.0-20250530185940-65ddbc68fbfd\n- github.com/forceu/gokapi (Go): affected from 1.0.1 up to 1.9.6; no fix listed\n- github.com/forceu/gokapi (Go): affected from 1.0.1 up to 1.9.6; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-48495/ (Markdown: https://insights.sbomify.com/CVE-2025-48495/index.md)","id":"CVE-2025-48495","markdown":"https://insights.sbomify.com/CVE-2025-48495/index.md","name":"CVE-2025-48495","record":{"aliases":["GHSA-4xg4-54hm-9j77","GO-2025-3736"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Self-hosted file sharing server","requires_auth":"high_privilege","summary":"Authenticated users can inject JavaScript via API key names, leading to code execution in other users' browsers.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gokapi","vendor":"forceu"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-87","name":"Improper Neutralization of Alternate XSS Syntax"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Gokapi has stored XSS vulnerability in friendly name for API keys","id":"CVE-2025-48495","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":5,"n_references":2,"next":{"headline":"Emerson ValveLink Products Uncontrolled Search Path Element","id":"CVE-2025-48496"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"GO-2025-3736"},{"ecosystem":"Go","fixed":["0.0.0-20250530185940-65ddbc68fbfd"],"introduced":["0"],"last_affected":[],"package":"github.com/forceu/gokapi","purl":null,"source":"GHSA-4xg4-54hm-9j77"},{"ecosystem":"Go","fixed":["0.0.0-20250530185940-65ddbc68fbfd"],"introduced":["0"],"last_affected":[],"package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"GHSA-4xg4-54hm-9j77"},{"ecosystem":"Go","fixed":[],"introduced":["1.0.1"],"last_affected":["1.9.6"],"package":"github.com/forceu/gokapi","purl":null,"source":"GHSA-4xg4-54hm-9j77"},{"ecosystem":"Go","fixed":[],"introduced":["1.0.1"],"last_affected":["1.9.6"],"package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"GHSA-4xg4-54hm-9j77"}],"prev":{"headline":"Gokapi vulnerable to stored XSS via uploading file with malicious file name","id":"CVE-2025-48494"},"products":["Gokapi"],"published":"2025-06-02","related":[{"cvss_score":8.7,"headline":"Gokapi: Stored XSS in SVG Hotlinks","id":"CVE-2026-28683","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":6.5,"headline":"Gokapi vulnerable to DoS in E2E Metadata Parser","id":"CVE-2026-30955","kev_date_added":null,"published":"2026-03-13"},{"cvss_score":6.4,"headline":"Gokapi: Data Leak in Upload Status Stream","id":"CVE-2026-28682","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":5.4,"headline":"Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion","id":"CVE-2026-29061","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":5,"headline":"Gokapi: Privilege escalation with auth token","id":"CVE-2026-29060","kev_date_added":null,"published":"2026-03-06"},{"cvss_score":4.8,"headline":"Gokapi vulnerable to stored XSS via uploading file with malicious file name","id":"CVE-2025-48494","kev_date_added":null,"published":"2025-06-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-02","vendors":["Forceu"]},"summary":"Authenticated users can inject JavaScript via API key names, leading to code execution in other users' browsers.","url":"https://insights.sbomify.com/CVE-2025-48495/"}