{"id":"GHSA-mcjj-2fvq-mc3r","summary":"Gogs vulnerable to Cross-site Scripting","details":"In Gogs, versions v0.6.5 through v0.12.10 are vulnerable to Stored Cross-Site Scripting (XSS) that leads to an account takeover.","aliases":["CVE-2022-32174","GO-2022-1060"],"modified":"2025-05-28T19:49:01Z","published":"2022-10-11T19:00:29Z","database_specific":{"nvd_published_at":"2022-10-11T15:15:00Z","cwe_ids":["CWE-79"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-10-11T21:20:56Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32174"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"},{"type":"WEB","url":"https://github.com/gogs/gogs/blob/v0.12.10/public/js/gogs.js#L263"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-1060"},{"type":"WEB","url":"https://www.mend.io/vulnerability-database/CVE-2022-32174"}],"affected":[{"package":{"name":"gogs.io/gogs","ecosystem":"Go","purl":"pkg:golang/gogs.io/gogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.5"},{"last_affected":"0.12.10"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-mcjj-2fvq-mc3r/GHSA-mcjj-2fvq-mc3r.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"}]}