CVE-2022-1928 Cross-site Scripting (XSS) - Stored in go-gitea/gitea

Medium 4.4 Published Updated

Attackers can inject malicious scripts into Gitea, potentially executing code or hijacking user accounts.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-1928?

CVE-2022-1928 is a medium-severity cross-site scripting vulnerability in Gitea Gitea, published on 29 May 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Cross-site Scripting (XSS) - Stored in GitHub repository go-gitea/gitea prior to 1.16.9.

Weakness: CWE-79

Which versions are affected by CVE-2022-1928?

4 open source packages ship an affected version, including code.gitea.io/gitea and gitea. It affects 1 product.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.16.9
code.gitea.io/gitea GoAll versions1.16.9
code.gitea.io/gitea GoAll versions1.16.9
gitea BitnamiAll versions1.16.9

Products include Gitea Gitea.

How do I fix CVE-2022-1928?

Upgrade code.gitea.io/gitea to 1.16.9 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-2022-1928 being exploited?

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

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2022-1928, GHSA-ph3w-2843-72mx, GO-2022-0612.

Is CVE-2022-1928 in your software?

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

Check your SBOMs for free