Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2026-26022

CVE-2026-26022: Gogs: Stored XSS via data URI in issue comments

March 5, 2026

A Stored Cross-site Scripting (XSS) vulnerability exists in the comment and issue description functionality. The application’s HTML sanitizer explicitly allows data: URI schemes, enabling authenticated users to inject arbitrary JavaScript execution via malicious links.

References

  • github.com/advisories/GHSA-xrcr-gmf5-2r8j
  • github.com/gogs/gogs
  • github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291
  • github.com/gogs/gogs/pull/8174
  • github.com/gogs/gogs/releases/tag/v0.14.2
  • github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8j
  • nvd.nist.gov/vuln/detail/CVE-2026-26022

Code Behaviors & Features

Detect and mitigate CVE-2026-26022 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.14.2

Fixed versions

  • 0.14.2

Solution

Upgrade to version 0.14.2 or above.

Impact 8.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/gogs.io/gogs/CVE-2026-26022.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:17:46 +0000.