GO-2022-0473
LOWCross site scripting via cookies in gogs
Impact
There is no known practical impact other than it is just possible to manipulate CSRF cookie and XSS the malicious user self.
Patches
Invalid characters of CSRF tokens are stripped after reading cookie. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.
Workarounds
No need for workarounds.
References
N/A
For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6953.
- Published
- 2 Jun 2022
- Last modified
- 3 Mar 2026
- Weakness
- CWE-79
- Also known as
- GHSA-pj96-4jhv-v792
- Sources
- OSV GHSA-pj96-4jhv-v792JSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | gogs.io/gogs | < 0.12.8 | 0.12.8 |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-pj96-4jhv-v792 · WEB, ADVISORY
- https://github.com/gogs/gogs/issues/6953 · WEB
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 2 Jun 2022)