The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-26276

CVE-2026-26276: Gogs Self-Hosted Git Service XSS Flaw

CVE-2026-26276 is a DOM-based XSS vulnerability in Gogs self-hosted Git service that allows attackers to inject malicious scripts via Milestone names. This article covers the technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2026-26276 Overview

CVE-2026-26276 is a DOM-Based Cross-Site Scripting (XSS) vulnerability affecting Gogs, an open source self-hosted Git service. Prior to version 0.14.2, an attacker can store an HTML/JavaScript payload in a repository's Milestone name. When another user selects that Milestone on the New Issue page (/issues/new), the malicious payload is executed in the victim's browser context, enabling potential session hijacking, credential theft, or unauthorized actions on behalf of the victim.

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in victim browsers when they interact with maliciously crafted Milestone names, potentially leading to account compromise and repository manipulation.

Affected Products

  • Gogs versions prior to 0.14.2
  • Self-hosted Git service deployments using vulnerable Gogs versions
  • Organizations utilizing Gogs for internal code repository management

Discovery Timeline

  • 2026-03-05 - CVE CVE-2026-26276 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2026-26276

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), specifically a stored DOM-Based XSS. The flaw exists in how Gogs handles Milestone name data when rendering the New Issue page. When a user with repository access creates or modifies a Milestone, they can inject HTML or JavaScript payloads into the Milestone name field. This input is stored server-side and later rendered without proper sanitization when other users access the issue creation interface.

The attack requires the attacker to have authenticated access to the repository with permissions to create or edit Milestones. The vulnerability affects confidentiality and integrity as arbitrary scripts can steal session tokens, modify repository settings, or perform actions on behalf of the victim user.

Root Cause

The root cause of this vulnerability is insufficient input validation and output encoding in the Milestone name handling logic. When Milestone data is rendered in the DOM on the New Issue page, the application fails to properly escape or sanitize the Milestone name before inserting it into the page. This allows specially crafted HTML and JavaScript content to be interpreted and executed by the browser rather than being displayed as plain text.

Attack Vector

The attack is executed over the network and requires user interaction. An authenticated attacker with repository access performs the following steps:

  1. Creates or edits a Milestone within a target repository
  2. Injects a malicious JavaScript payload into the Milestone name field (e.g., <script> tags or event handlers)
  3. The payload is stored in the Gogs database
  4. When a victim user navigates to the New Issue page and interacts with the Milestone selector, the malicious script executes in their browser context
  5. The attacker can then steal session cookies, perform CSRF attacks, or manipulate the victim's session

The vulnerability mechanism involves improper handling of user-supplied input in the Milestone name field. When the New Issue page renders the Milestone dropdown, the name is inserted into the DOM without proper encoding, allowing injected scripts to execute. For detailed technical information, refer to the GitHub Security Advisory and Pull Request #8178.

Detection Methods for CVE-2026-26276

Indicators of Compromise

  • Unusual or suspicious characters in Milestone names including <script>, <img>, onerror, onload, or other HTML/JavaScript patterns
  • Browser console errors or unexpected JavaScript execution when accessing the New Issue page
  • User reports of unexpected behavior or pop-ups when creating issues
  • Audit logs showing Milestone creation or modification with suspicious payload patterns

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block common XSS patterns in form submissions
  • Monitor Gogs database for Milestone entries containing HTML tags or JavaScript event handlers
  • Review application logs for unusual POST requests to Milestone creation/edit endpoints
  • Deploy browser-based XSS detection tools that alert on suspicious script execution

Monitoring Recommendations

  • Enable verbose logging for Milestone CRUD operations in Gogs
  • Configure SIEM alerts for patterns matching XSS payloads in web application logs
  • Implement Content Security Policy (CSP) headers to restrict script execution sources
  • Regularly audit repository Milestone names for suspicious content

How to Mitigate CVE-2026-26276

Immediate Actions Required

  • Upgrade Gogs to version 0.14.2 or later immediately
  • Audit existing Milestone names across all repositories for suspicious HTML/JavaScript content
  • Review access logs for any evidence of exploitation attempts
  • Consider implementing additional input validation at the reverse proxy or WAF level

Patch Information

Gogs has released version 0.14.2 which addresses this vulnerability. The patch implements proper output encoding for Milestone names when rendering them in the DOM. Organizations should upgrade to this version immediately. The fix is available via the GitHub Release v0.14.2, and technical details of the patch can be reviewed in Pull Request #8178.

Workarounds

  • Restrict Milestone creation and editing permissions to trusted users only until the patch can be applied
  • Implement a Content Security Policy (CSP) header with strict script-src directives to mitigate XSS impact
  • Deploy a web application firewall with XSS detection rules in front of the Gogs instance
  • Manually sanitize existing Milestone names by removing any HTML or JavaScript content
bash
# Configuration example
# Add Content Security Policy headers in your reverse proxy (nginx example)
# This helps mitigate XSS attacks but is not a complete fix - upgrade to 0.14.2
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';" always;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechGogs

  • SeverityMEDIUM

  • CVSS Score5.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Pull Request #8178

  • GitHub Release v0.14.2
  • Vendor Resources
  • GitHub Security Advisory GHSA-vgjm-2cpf-4g7c
  • Related CVEs
  • CVE-2026-26195: Gogs Self-Hosted Git Service XSS Flaw

  • CVE-2026-26022: Gogs Git Service Stored XSS Vulnerability

  • CVE-2026-26196: Gogs Information Disclosure Vulnerability

  • CVE-2026-25921: Gogs LFS Supply-Chain Attack Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English