CVE-2025-50978 Cross-site scripting in n/a

Medium 6.1 Published Updated

Reflected XSS in Gitblit allows attackers to execute arbitrary JavaScript in victims' browsers via crafted repository path names.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-50978?

CVE-2025-50978 is a medium-severity cross-site scripting vulnerability in n/a, published on 27 Aug 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2025-50978?

It affects 1 product.

Products include Gitblit Gitblit.

How do I fix CVE-2025-50978?

No fix has been published for CVE-2025-50978 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-50978 being exploited?

There is no known exploitation of CVE-2025-50978 in the wild and no public exploit code.

Sources

Also known as GHSA-p3vx-hvxm-9ghv.

Is CVE-2025-50978 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free