CVE-2026-26022 — Gogs: Stored XSS via data URI in gogs.io/gogs —...
Gogs: Stored XSS via data URI in issue comments
Summary
Advisory Timeline
- First published March 5, 2026 (221 days ago).
- Last revised March 23, 2026 — 17 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get gogs.io/gogs@v0.14.2
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: go (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| gogs.io/gogs | go | All versions | 0.14.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-xrcr-gmf5-2r8jWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-26022ADVISORY
- https://github.com/gogs/gogs/pull/8174WEB
- https://github.com/gogs/gogs/commit/441c64d7bd8893b2f4e48660a8be3a7472e14291WEB
- https://github.com/gogs/gogsPACKAGE
- https://github.com/gogs/gogs/releases/tag/v0.14.2WEB
Frequently Asked Questions
- What is CVE-2026-26022?
- Gogs: Stored XSS via data URI in issue comments This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
- How do I check if my project is affected by CVE-2026-26022?
- CVE-2026-26022 affects gogs.io/gogs. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-26022 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2022-1986CRITICAL
OS Command Injection in file editor in Gogs
- CVE-2026-52811CRITICAL
Gogs: UploadRepoFiles writes outside repo working tree via committed parent sym
- CVE-2026-52806CRITICAL
Gogs vulnerable to RCE via git rebase --exec argument injection in pull request merge
- CVE-2024-39930CRITICAL
Gogs has an argument Injection in the built-in SSH server
- CVE-2024-56731CRITICAL
Gogs allows deletion of internal files which leads to remote command execution
- CVE-2024-55947HIGH
Path Traversal in file update API in gogs
- CVE-2024-54148HIGH
Remote Command Execution in file editing in gogs
- CVE-2026-52816MEDIUM
Gogs's Unauthenticated Jupyter Notebook (ipynb) Sanitizer allows arbitrary data: URIs leading to XSS
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies