CVE-2022-1464 Stored xss bug in gogs/gogs

High 7.3 Published Updated

Stored XSS in Gogs allows attackers to execute arbitrary JavaScript in victim accounts via malicious attachments, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-1464?

CVE-2022-1464 is a high-severity cross-site scripting vulnerability in gogs/gogs, published on 5 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Stored xss bug in GitHub repository gogs/gogs prior to 0.12.7. As the repo is public , any user can view the report and when open the attachment then xss is executed. This bug allow executed any javascript code in victim account .

Weakness: CWE-79

Which versions are affected by CVE-2022-1464?

3 open source packages ship an affected version, including gogs.io/gogs. It affects 1 product.

PackageAffectedFixed in
gogs.io/gogs GoAll versions0.12.7
gogs.io/gogs GoAll versions0.12.7
gogs.io/gogs GoAll versions0.12.7

Products include Gogs Gogs.

How do I fix CVE-2022-1464?

Upgrade gogs.io/gogs to 0.12.7 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-1464 being exploited?

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

Sources

Also known as CLEANSTART-2024-YF95833, GHSA-ff28-f46g-r9g8, GO-2022-0597.

Is CVE-2022-1464 in your software?

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

Check your SBOMs for free