CVE-2022-32174
CriticalPublic exploitGogs vulnerable to Cross-site Scripting
Published Oct 11, 2022 · Updated Oct 8, 2026 · Also known as GHSA-mcjj-2fvq-mc3r, GO-2022-1060
Key Facts
Patch immediately- CVE-2022-32174 is a critical-severity vulnerability (CVSS 9.0 v3.1) affecting Gogs, gogs.io/gogs.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 58% probability of exploitation in the next 30 days.
- Fixed versions are available, including Gogs 0.13.0-r0, Gogs unspecified, Gogs <=0.12.10.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v3.1
9.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
58%
Higher than 99.0% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2022-32174 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.
Affected Products
14 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GogsGogs | >= v0.6.5 | 0.12.10 |
| gogs.io/gogsgo | >= 0.6.5 | n/a |
Patched Releases
Gogs
0.13.0-r0, unspecified, <=0.12.10
Timeline
Publicly disclosed
Oct 11, 2022
Last updated
Oct 8, 2026
Weakness Type
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2022/32xxx/CVE-2022-32174.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-32174
- articlehttps://github.com/gogs/gogs/blob/v0.12.10/public/js/gogs.js#L263
- articlehttps://pkg.go.dev/vuln/GO-2022-1060
FAQ
Common Questions.
In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.
Affected: Gogs versions >= v0.6.5; gogs.io/gogs versions >= 0.6.5. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Gogs 0.13.0-r0, Gogs unspecified, Gogs <=0.12.10.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-32174 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo