CVE-2021-45329 Cross-site Scripting in Gitea

Medium 6.1 Published Updated

Attackers can inject malicious scripts via external wiki or issue tracker URLs in repository settings, potentially compromising user sessions.

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-2021-45329?

CVE-2021-45329 is a medium-severity cross-site scripting vulnerability in Gitea Gitea, published on 8 Feb 2022. 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

Cross Site Scripting (XSS) vulnerability exists in Gitea before 1.5.1 via the repository settings inside the external wiki/issue tracker URL field.

Weakness: CWE-79

Which versions are affected by CVE-2021-45329?

4 open source packages ship an affected version, including github.com/go-gitea/gitea and gitea. It affects 1 product.

PackageAffectedFixed in
github.com/go-gitea/gitea GoAll versions1.5.1
github.com/go-gitea/gitea GoAll versions1.5.1
github.com/go-gitea/gitea GoAll versions1.5.1
gitea BitnamiAll versions1.5.1

Products include Gitea Gitea.

How do I fix CVE-2021-45329?

Upgrade github.com/go-gitea/gitea to 1.5.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-2021-45329 being exploited?

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

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2021-45329, CLEANSTART-2025-OQ04236, GHSA-r3gq-wxqf-q4gh, GO-2022-0314, UBUNTU-CVE-2021-45329.

Is CVE-2021-45329 in your software?

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

Check your SBOMs for free