CVE-2026-120729

Gitea stored cross-site scripting in the issue reference popup

Published Nov 15, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability allows a user who can post comments or other rendered content to embed a link that appears as an ordinary issue reference but points to an arbitrary file in a repository the attacker controls. When a normal user hovers over the link, the popup fetches the file’s contents and injects part of the response as HTML, enabling the execution of client‑side script in the viewer’s session. This leads to arbitrary script execution with the privileges of the browsing user, potentially resulting in session hijacking or data theft. The weakness is a classic stored cross‑site scripting flaw (CWE‑79).

Affected Systems

The affected product is Gitea. Versions released before 28.4.0 contain the flaw, as the reference to a security advisory and a release announcement for 28.4.0 indicate that the issue is fixed in that version.

Risk and Exploitability

The vulnerability is exploitable by any actor that can post content in the Git repository’s issue or comment system. Although the EPSS score is not available, the high impact nature of stored XSS and the lack of a KEV listing suggest that it is a significant risk in environments where the Gitea instance is publicly accessible or hosts internal code. Attackers can gain in‑browser execution by simply creating a malicious link in a comment and having a legitimate user visit it. No special escalation is required beyond write access to the issue tracker.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Gitea to version 28.4.0 or later, which removes the ability to inject arbitrary HTML into the popup.
  • If an immediate upgrade is not possible, restrict comment posting so that only administrators can add links that resolve to external files, or disable the issue reference popup feature to eliminate the injection vector.
  • Ensure that all user‑generated content is properly escaped before rendering, as recommended for preventing input validation weaknesses (CWE‑79), and review the server’s configuration to restrict the content types served via the popup endpoint.

Generated by OpenCVE AI on November 15, 2026 at 22:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Description 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.
Title Gitea stored cross-site scripting in the issue reference popup
Weaknesses CWE-79
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Nov 15, 2026, 9:13 PM
Reserved
Nov 15, 2026, 8:29 PM
Status
Deferred
Published
Nov 15, 2026, 10:17 PM
Modified
Nov 15, 2026, 10:17 PM