{"id":"CVE-2025-50978","details":"In Gitblit v1.7.1, a reflected cross-site scripting (XSS) vulnerability exists in the way repository path names are handled. By injecting a specially crafted path payload an attacker can cause arbitrary JavaScript to execute when a victim views the manipulated URL. This flaw stems from insufficient input sanitization of filename elements.","modified":"2026-08-12T03:51:44.579889301Z","published":"2025-08-27T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50978.json"},"references":[{"type":"WEB","url":"https://github.com/4rdr/proofs/blob/main/info/gitblit-v1.7.1-reflected-XSS-via-filenames.md"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/50xxx/CVE-2025-50978.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50978"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gitblit-org/gitblit","events":[{"introduced":"390909105f3323b24a7cc19ec1efe4bb099cfa76"},{"last_affected":"390909105f3323b24a7cc19ec1efe4bb099cfa76"}],"database_specific":{"cpe":"cpe:2.3:a:gitblit:gitblit:1.7.1:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.7.1"},{"last_affected":"1.7.1"}],"source":"CPE_STRING"}}],"versions":["1.7.1","v1.7.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-50978.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}