Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain an issued Gitea account and host a crafted raw file
-
DeliveryPost a disguised issue-reference link in a comment, PR, or dashboard-feed item
-
ExploitVictim hovers the rendered #N reference (no click)
-
ExecutionPopup fetches attacker file and inserts iframe srcdoc with external script
-
ImpactRun 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (Gitea).
CVSS VectorVendor: Gitea
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote code execution in Gitea (self-hosted Git service) via a code-injection flaw (CWE-94) allows attackers to run arbi
Broken access control in Gitea's Composer package registry (versions up to and including 1.26.1) lets remote attackers r
Gitea before 1.16.7 does not escape git fetch remote. Rated high severity (CVSS 7.5), this vulnerability is remotely exp
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer envir
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea Gitea
Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us
Reverse-proxy authentication bypass in the official Gitea Docker image (versions up to and including 1.26.2) allows any
Path traversal in Gitea's Org-mode (`.org`) markup renderer allows an attacker who can get Org-mode content rendered by
Container escape in Gitea act_runner (Docker backend, through act 0.262.0) lets an authenticated user with workflow-exec
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
Server-side request forgery and internal repository exfiltration in Gitea before 1.27.0 lets a low-privileged authentica
Authorization bypass in Gitea versions 1.22.3 through 1.26.1 allows holders of `public-only` access tokens or OAuth gran
EUVD-2026-126119
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB