SecurityContext

CVE-2022-32174: Gogs - Stored XSS

  • Cve: CVE-2022-32174
  • Name: Gogs - Stored XSS
  • Description: In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.
  • Impact: Attackers can execute scripts in users' browsers, potentially leading to account takeover and session hijacking.
  • Remediation: Update to the latest version of Gogs that addresses this vulnerability, or apply security patches if available.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs to store malicious input
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
  • Epss score: 0.58246
  • Epss percentile: 0.99115
  • Assignee: [email protected]
  • Published at: 2022-10-11T15:15:09Z
  • Age in days: 1505
  • Modified at: 2026-06-17T04:46:48Z
  • Public exploits total: 2
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-32174
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/gogs/gogs/blob/v0.12.10/public/js/gogs.js#L263nvd2022-10-11
https://www.mend.io/vulnerability-database/CVE-2022-32174nvd2022-10-11

References

UrlSourceTags
https://github.com/gogs/gogs/blob/v0.12.10/public/js/gogs.js#L263nvdExploit, Third Party Advisory
https://www.mend.io/vulnerability-database/CVE-2022-32174nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gogs:gogs>= 0.6.5, <= 0.12.10nonvd/v1/products/gogs/gogs

Projects

RepositoryLink kindsIndexedUrl
gogs/gogspackageyes/v1/repositories/gogs/gogs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2022-10-11
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 174004
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports