CVE-2022-1464 json
Stored xss bug in gogs/gogs
published 2022-05-05 4 y ago modified 2026-06-17 4 mo ago also GHSA-ff28-f46g-r9g8 , GO-2022-0597 , EUVD-2022-3755
- cvss
- 7.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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 .
Patch / fix
- go gogs.io/gogs 0.12.7
- gogs gogs/gogs 0.12.7
- gogs Alpine 3.20, Alpine 3.19, Alpine 3.18 +2 more 0.12.7-r0
alpine advisories ALPINE-CVE-2022-1464
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/gogs/gogs@bc77440 commit
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.dev https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.12.7 |
0.12.7 |
Affected products
- gogs gogs/gogs
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850
web, patch, third-party-advisory
-
huntr.dev
/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d
web, exploit, third-party-advisory
-
github.com
/gogs/gogs/security/advisories/GHSA-ff28-f46g-r9g8
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-1464
advisory
-
github.com
/gogs/gogs
package
Sources
- CVE List CVE-2022-1464
- GitHub Advisory GHSA-ff28-f46g-r9g8
- NVD CVE-2022-1464
- OSV GO-2022-0597
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.