What’s Vulnerable › Vulnerabilities
CVE-2022-1464: Stored xss bug in gogs/gogs
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-05-05 · updated 2026-06-17
- Weakness: CWE-79
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 .
Affected products
- gogs: before 0.12.7 — fixed in 0.12.7
How to fix
Upgrade to a fixed version: gogs 0.12.7. Check the vendor advisory for mitigations.
References
- https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850
- https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d
- https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850
- https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d
Get alerted when CVE-2022-1464 or the next vulnerability affects your stack