Medium severity · published May 5, 2022
CVE-2022-1464
Stored xss bug in GitHub repository gogs/gogs prior to 0.12.7
5.4
CVSS
0.7%
EPSS
No
On KEV
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 .
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GO
Gogs · Gogs
before 0.12.7 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-1464
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-1464
Patch
https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850
Exploit
https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d
More from Gogs
8.8
CVE-2025-8110
File overwrite in file update API in Gogs
10.0
CVE-2026-52813
Gogs: Path Traversal in organization name results in RCE through Git hooks
9.9
CVE-2026-52806
Gogs: RCE via git rebase --exec argument injection in pull request merge
9.9
CVE-2024-39932
Gogs through 0.13.0 allows argument injection during the previewing of changes
9.9
CVE-2024-39931
Gogs through 0.13.0 allows deletion of internal files
