Skip to main content

Gitea EUVDEUVD-2026-126119

| CVE-2026-120729 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-15 Gitea
5.4
CVSS 3.1 · Vendor: Gitea
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain an issued Gitea account and host a crafted raw file
  2. Delivery
    Post a disguised issue-reference link in a comment, PR, or dashboard-feed item
  3. Exploit
    Victim hovers the rendered #N reference (no click)
  4. Execution
    Popup fetches attacker file and inserts iframe srcdoc with external script
  5. Impact
    Run script as the victim on the Gitea origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must have an account the site has issued (self-registration is off by default), a repository the victim can read (the attacker's own public repository suffices) to host a committed file whose field carries the payload, and an external host to serve the script - required because the page CSP is 'script-src *', which permits an external script inside a same-origin srcdoc frame. No non-default Gitea setting is involved; it works on default configuration of Gitea 1.27.0 through 28.3.0. Exploitation triggers only when a signed-in victim rests the mouse (~300 ms, no click) on the planted link, which appears as an ordinary #N issue reference, in an issue/PR/comment the victim reads or in the victim's dashboard activity feed. Limiting factors: requires an authenticated attacker account, requires victim hover (UI interaction), and depends on an attacker-controlled external script host plus the permissive 'script-src *' CSP; real-browser execution was demonstrated only in a DOM emulation.

Impact

Signals point to a genuine but moderate, non-emergency priority. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, base 5.4) describes an authenticated (PR:L), network-reachable stored XSS that requires victim interaction (UI:R) and crosses a privilege boundary (S:C) with limited confidentiality and integrity impact. Real-world exploitation signals are low and internally consistent: EPSS is 0.25% (16th percentile), there is no CISA KEV listing, and the vuln.today Decision label is 'this_month' rather than act_now or emergency - aligned with a flaw that needs an issued account, a readable repository, an attacker-controlled script host, and a victim who hovers a planted link. The aggravators the raw score understates are that the only interaction is resting the mouse (no click), the link is visually indistinguishable from a normal #N reference, it works on default settings, and a hovering site administrator exposes admin-level session actions. Key caveat: the advisory's reproducer ran only in happy-dom, which does not enforce Content-Security-Policy, so actual script execution in a real browser was not observed - it is inferred from the page's permissive 'script-src *' policy. Overall a real priority for multi-user Gitea instances but not drop-everything; patch to 28.4.0 on a normal cycle.

Exploit ScenarioDerived

A regular Gitea user commits a JSON file to a repository they control, then posts a bare URL (e.g. http://<gitea>/mallory/x/raw/branch/main/alice/app/issues/1) in an issue, pull request, comment, or anywhere surfaced in a victim's dashboard feed; Gitea renders it as an ordinary '#1' reference. When a signed-in victim rests the mouse on the link for ~300 ms, the popup fetches the attacker's raw file and inserts a field of it as HTML (an iframe srcdoc), loading an externally hosted script that runs in the victim's session on the Gitea origin. A happy-dom reproducer exists demonstrating the fetch and HTML insertion, but it is not verified as a working exploit in a real browser because happy-dom does not enforce CSP.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Stored cross-site scripting in Gitea's issue-reference hover popup lets an authenticated user run script in another signed-in user's session by planting a link that renders as an ordinary #N issue reference but points into a raw file path of an attacker-controlled repository; the popup fetches that file and injects one of its fields as HTML when the victim merely rests the mouse on the link (~300 ms, no click). Gitea 1.27.0 through 28.3.0 are affected on default configuration; a vendor patch shipping in 28.4.0 corrects the request to derive the owner, repository and index from the parsed link. EPSS is low (0.25%, 16th percentile) and there is no KEV listing, but the advisory includes a reproducer that demonstrated the hover fetch and iframe insertion in a DOM emulation; real-browser script execution was not observed because the emulation does not enforce CSP, and it follows from the page's script-src * policy.

RemediationAI

Vendor-released patch: upgrade to Gitea 28.4.0 (https://github.com/go-gitea/gitea/releases/tag/v28.4.0, release notes at https://blog.gitea.com/release-of-28.4.0/); the fix is carried by pull requests https://github.com/go-gitea/gitea/pull/40207 and https://github.com/go-gitea/gitea/pull/40225, with the second adding an extra check on top of the first and being the recommended one. The fix anchors parseIssueHref to window.config.appSubUrl with an anchored ^/([-.\w]+)/([-.\w]+)/(issues|pulls)/([0-9]+)(?:/|$) match so raw-file paths no longer parse, and rebuilds the popup request as ${appSubUrl}/${ownerName}/${repoName}/${pathType}/${indexString}/info so it can only reach GetIssueInfo; a documented behaviour change is that issue paths not starting at appSubUrl no longer parse, and the accompanying vitest suite needs a Playwright browser and should be run before merging. Exploitation requires the attacker to host the script on an external origin because the page CSP is script-src *, so a deployment that cannot upgrade immediately can tighten script-src for Gitea pages to block the external script inside the srcdoc frame, accepting the side effect that externally hosted scripts and assets are no longer permitted; the advisory's own resolution is the upgrade, and the underlying rendering of arbitrary same-site URLs as #N references is not removed by any documented setting.

Affected VersionsENISA

Gitea 1.27.0 <28.4.0

Affected Packages

euvd gitea fix: 28.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a CWE-79 stored cross-site scripting. The flaw was introduced in commit 12d83cbfa3ca ("Extend issue context popup beyond markdown content", first released in v1.27.0-rc0) and lives in the frontend: showRefIssuePopup in web_src/js/features/ref-issue.ts requests ${link.pathname}/info rather than the real /{owner}/{repo}/issues/{index}/info endpoint, and ContextPopup.vue renders the response's renderedLabels field with v-html. That is only safe while the pathname resolves to the server route where GetIssueInfo builds renderedLabels via RenderLabels; nothing constrains the link to that route, so a path such as /mallory/x/raw/branch/main/alice/app/issues/1 causes the popup to request /mallory/x/raw/branch/main/alice/app/issues/1/info, which the raw route serves as a file committed by the attacker. Two safeguards fail: parseIssueHref uses an unanchored regular expression, so any path containing a/b/issues/N parses, and fullIssuePatternProcessor assigns the ref-issue class and #N text to any same-site URL that merely ends in /owner/repo/issues/N. The payload is not an inline script; the injected markup uses a same-origin srcdoc iframe with no sandbox attribute, whose parser-inserted external script is permitted by the page's script-src * CSP (the policy is delivered as a meta tag and blocks inline scripts and inline handlers but not this). The dashboard feed and repository activity views marked with [data-ref-issue-container] reach the popup without needing the backend to add the class. Real-browser execution was not observed because the reported reproducer ran the shipped frontend bundle in happy-dom, which does not implement Content-Security-Policy.

Know when Gitea gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Gitea) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Authenticated attacker (PR:L) plants a reference over the network (AV:N/AC:L); victim must hover (UI:R); script runs cross-user in the Gitea origin so scope changes (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (Gitea).

CVSS VectorVendor: Gitea

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 16, 2026 - 22:22 NVD
5.4 (MEDIUM)
CVE Published
Nov 15, 2026 - 21:13 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

The popup shown when hovering an issue reference loaded its data from the path of the hovered link and inserted part of the response as HTML. A user who can post a comment or other rendered content could add a link that is displayed as an ordinary issue reference but points to a file in a repository they control, so that the popup inserted that file's content into the page of anyone hovering the link and ran script in the viewer's session. The popup now requests the issue by the owner, repository and index parsed from the link.

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Medium
popular self-hosted Git forge, common but far from ubiquitous
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Gitea

View all
CVE-2026-60004 CRITICAL POC
9.8

Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi

CVE-2026-27771 HIGH POC
8.2 Jul 03

Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r

CVE-2022-30781 HIGH POC
7.5 May 16

Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp

CVE-2020-14144 HIGH POC
7.2 Oct 16

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir

CVE-2024-6886 CRITICAL POC
10.0 Aug 06

Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

CVE-2026-20896 CRITICAL POC
9.8 Jul 03

Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any

CVE-2026-59774 CRITICAL POC
9.8

Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by

CVE-2026-58053 CRITICAL POC
9.4 Jun 28

Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec

CVE-2019-11229 HIGH POC
8.8 Apr 15

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to rem

CVE-2026-57894 HIGH POC
8.5 Jul 21

Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica

CVE-2026-24791 HIGH POC
8.1 Jun 17

Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy