CVE-2022-1464
MEDIUM 5.4CVSS 3.1Cross-site Scripting in Gogs
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 .
- Published
- 5 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-ff28-f46g-r9g8GO-2022-0597
- Sources
- NVDJSONOSV GHSA-ff28-f46g-r9g8JSONOSV GO-2022-0597JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.12.7 | 0.12.7 |
| OSV | Go | gogs.io/gogs | < 0.12.7 | 0.12.7 |
References
- https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d · Exploit, Third Party Advisory, WEB
- https://github.com/gogs/gogs/security/advisories/GHSA-ff28-f46g-r9g8 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-1464 · ADVISORY
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 5 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)