Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2022-32174: In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an

61
This week
CRITICAL 9.0UPGRADE

CVE-2022-32174 is a critical-severity flaw (CVSS 9.0) affecting gogs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score9.0 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionRequired
EPSS exploit chance58.2% (top 1%)
CISA exploited listNo
WeaknessCWE-79
Published2022-10-11
Last modified2026-06-17
Publisher (CNA): Mend · Vendor: gogs

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

gogs gogs UPGRADE
Affected: >= 0.6.5 and <= 0.12.10
Fixed in: newer than 0.12.10
Safe to downgrade to: a release before 0.6.5
1. Check installed version
apt-cache policy gogs || rpm -q gogs || gogs --version
2. UPGRADE to newer than 0.12.10 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade gogs
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade gogs
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 0.6.5 (Debian / Ubuntu)
apt-cache madison gogs sudo apt install gogs=<VERSION_BEFORE_0.6.5> sudo apt-mark hold gogs
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list gogs sudo dnf downgrade gogs-<VERSION_BEFORE_0.6.5> sudo dnf versionlock add gogs
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2022-32174?

gogs: upgrade to newer than 0.12.10. Exact commands for each OS are on this page.

Is CVE-2022-32174 being exploited?

CVE-2022-32174 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2022-32174 affect?

CVE-2022-32174 affects gogs. Severity is critical (CVSS 9.0). In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.

How urgent is CVE-2022-32174?

Priority 61/100. Critical severity; EPSS top 1%: very likely to be exploited; Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.