# CVE-2022-1464: Stored xss bug in gogs/gogs

- Severity: High 7.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-05T13:45:12.000Z
- Modified: 2026-06-17T04:22:29.983Z
- Also known as: GHSA-ff28-f46g-r9g8, GO-2022-0597
- Weaknesses: CWE-79
- Assigned by: @huntrdev

## 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 .

(As written by CVE List.)

## Affected

- gogs gogs/gogs: from unspecified before 0.12.7
- gogs.io/gogs (Go): before 0.12.7
- gogs gogs: before 0.12.7

## Every score

- @huntrdev: CVSS:3.0 7.3 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d> (exploit, third-party-advisory, web)
- <https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850> (patch, third-party-advisory, web)
- <https://github.com/gogs/gogs/security/advisories/GHSA-ff28-f46g-r9g8> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1464> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2022-1464](https://www.cve.org/CVERecord?id=CVE-2022-1464), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-ff28-f46g-r9g8](https://github.com/advisories/GHSA-ff28-f46g-r9g8), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0597](https://pkg.go.dev/vuln/GO-2022-0597), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-1464](https://nvd.nist.gov/vuln/detail/CVE-2022-1464), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-1464 · Whole record: https://cve.day/CVE-2022-1464.json · Rebuilt by cve.day 2026-11-25T22:58:11.425Z
