CVE-2022-1464Gogs
Medium 5.4
Follow: this CVE · Gogs · Gogs We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.4
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 49
- Auth required
- Yes
- Published
- May 5, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
What happens
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 .
What to do
- Apply the vendor's security update for Gogs.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.12.7 |
0.12.7 |
go get gogs.io/gogs@v0.12.7 |
| Go | gogs.io/gogs |
< 0.12.7 |
0.12.7 |
go get gogs.io/gogs@v0.12.7 |
Per OSV / GitHub Advisories (GHSA-ff28-f46g-r9g8, GO-2022-0597). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | < 0.12.7 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- huntr.dev Exploit Third Party Advisory