CVE-2025-48494

Source
https://cve.org/CVERecord?id=CVE-2025-48494
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48494.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-48494
Aliases
Downstream
Related
Published
2025-06-02T11:03:52.689Z
Modified
2026-07-15T01:49:07.232012267Z
Severity
  • 4.8 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Gokapi vulnerable to stored XSS via uploading file with malicious file name
Details

Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. When using end-to-end encryption, a stored cross-site scripting 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. 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 using a version 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 possible workaround would be to disable end-to-end encryption.

Database specific
{
    "cwe_ids": [
        "CWE-79",
        "CWE-87"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48494.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/forceu/gokapi

Affected ranges

Type
GIT
Repo
https://github.com/forceu/gokapi
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "cpe": [
        "cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:forceu:gokapi:2.0.0:beta1:*:*:*:*:*:*",
        "cpe:2.3:a:forceu:gokapi:2.0.0:beta2:*:*:*:*:*:*"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "2.0.0"
        },
        {
            "introduced": "2.0.0-beta1"
        },
        {
            "last_affected": "2.0.0-beta1"
        },
        {
            "introduced": "2.0.0-beta2"
        },
        {
            "last_affected": "2.0.0-beta2"
        }
    ],
    "source": [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

2.*
2.0.0-beta1
2.0.0-beta2
v2.*
v2.0.0-beta1
v2.0.0-beta2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48494.json"