CVE-2022-32174CWE-79

Gogs - XSS

Critical · published October 11, 2022

Patch now

High probability of exploitation

CVSS calls it critical at 9.0. It sits in the 99.1th percentile for exploit probability.

CVSS v3.1
9.0
EPSS
58%
Percentile
99.1
In the wild
Unconfirmed
What it is

🚨 Stored XSS in Gogs could let attackers take over accounts just like that — we're talking about a houseguest who moves in and never leaves! 🔥 This vulnerability is like giving a stranger the keys to your home by failing to check their ID before letting them in — once they're inside, they can do whatever they want without anyone noticing. An attacker could exploit this vulnerability to execute malicious scripts, potentially allowing them to hijack user accounts, steal sensitive information, or even manipulate your Gogs repository. The chaos that could follow is absolutely devastating — think of your projects being altered or deleted without your consent!

Put simply

This vulnerability is like giving a stranger the keys to your home by failing to check their ID before letting them in — once they're inside, they can do whatever they want without anyone noticing. Gogs versions v0.6.5 through v0.12.10 are vulnerable to stored XSS attacks, where malicious scripts can be injected into the application. This allows attackers to execute code in the context of a user's browser, leading to account takeover and unauthorized actions.

What to do

An attacker could exploit this vulnerability to execute malicious scripts, potentially allowing them to hijack user accounts, steal sensitive information, or even manipulate your Gogs repository. The chaos that could follow is absolutely devastating — think of your projects being altered or deleted without your consent! To protect yourself, upgrade Gogs to version 0.12.10.1 or later immediately. Additionally, ensure input sanitization and validation are in place to prevent future XSS exploits. Regularly audit user permissions and monitor for suspicious activity. You've got this! With these steps, you'll be reinforcing your defenses and securing your Gogs environment in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.58021 · 99.1th percentile
Weakness
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Published
2022-10-11T14:20Z
EPSS history
Timeline
  • 11 OCT 14:20Z
    Gogs - XSS
    cvelistv5