CVE-2019-1010261 Gitea XSS Vulnerability
An attacker can execute arbitrary JavaScript in a victim's browser via a crafted URL in Gitea's go-get URL generation.
- 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
- Available
What is CVE-2019-1010261?
CVE-2019-1010261 is a medium-severity cross-site scripting vulnerability in Gitea Gitea, published on 18 Jul 2019. 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
Gitea 1.7.0 and earlier is affected by: Cross Site Scripting (XSS). The impact is: Attacker is able to have victim execute arbitrary JS in browser. The component is: go-get URL generation - PR to fix: https://github.com/go-gitea/gitea/pull/5905. The attack vector is: victim must open a specifically crafted URL. The fixed version is: 1.7.1 and later.
Weakness: CWE-79
Which versions are affected by CVE-2019-1010261?
3 open source packages ship an affected version, including code.gitea.io/gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.7.1 |
code.gitea.io/gitea Go | All versions | 1.7.1 |
code.gitea.io/gitea Go | All versions | 1.7.1 |
Products include Gitea Gitea.
How do I fix CVE-2019-1010261?
Upgrade code.gitea.io/gitea to 1.7.1 or later.
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-2019-1010261 being exploited?
There is no known exploitation of CVE-2019-1010261 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as GHSA-5rh7-6gfj-mc87, GO-2023-1922, UBUNTU-CVE-2019-1010261.