Security Digest · Vulnerability record

CVE-2024-6886: Gitea Cross-site Scripting Vulnerability

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.

CVSS 10.0 Critical EPSS 33.0% · p98

Should you act?

High exploit likelihood

EPSS ranks it in the top 5% of all CVEs for likely exploitation in the next 30 days. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
  • EPSS 33.0%, percentile 98: FIRST’s model estimates a 33.0% chance of exploitation activity in the next 30 days, higher than 98% of all scored CVEs (very high). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes code.gitea.io/gitea (Go) < 1.22.1, fixed in 1.22.1. Check your lockfile, including transitive dependencies.

What it is

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.

From the GitHub advisory

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.

Weakness type: CWE-79.

Product: code.gitea.io/gitea (Go) · Assigned by: Gitea · Published: 2024-08-06

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Gocode.gitea.io/gitea< 1.22.11.22.1
VendorProductAffected versions (per CVE record)
GiteaGitea Open Source Git Server1.22.0

Severity scores

Scored byCVSSScoreVector
Gitea4.010 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHub4.010.0 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: none
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation none, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 32.97% probability of exploitation activity in the next 30 days; percentile 98.

Timeline

  • — CVE record last updated
  • — CVE record published by Gitea
  • — GitHub-reviewed advisory GHSA-4h4p-553m-46qh published (critical)

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-4h4p-553m-46qh github.com
  2. CVE.org record CVE-2024-6886 cve.org
  3. NVD entry CVE-2024-6886 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. blog.gitea.com blog.gitea.com
  3. github.com github.com
  4. pkg.go.dev pkg.go.dev

Critical Go advisories · Today’s Security Digest