{"id":"GHSA-pj96-4jhv-v792","aliases":["GO-2022-0473"],"status":"published","title":"Cross site scripting via cookies in gogs","description":"### Impact\n\nThere is no known practical impact other than it is just possible to manipulate CSRF cookie and XSS the malicious user self.\n\n### Patches\n\nInvalid characters of CSRF tokens are stripped after reading cookie. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.\n\n### Workarounds\n\nNo need for workarounds.\n\n### References\n\nN/A\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6953.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-06-02T20:46:30Z","modified":"2026-03-03T04:50:25Z","fixes":[{"ecosystem":"Go","package":"gogs.io/gogs","fixed_in":["0.12.8"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}]},{"source":"osv","ecosystem":"Go","package":"gogs.io/gogs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.8"}]}]}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-pj96-4jhv-v792","tags":["web","advisory"]},{"url":"https://github.com/gogs/gogs/issues/6953","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pj96-4jhv-v792"},{"url":"https://github.com/gogs/gogs","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-pj96-4jhv-v792","title":"Cross site scripting via cookies in gogs","description":"### Impact\n\nThere is no known practical impact other than it is just possible to manipulate CSRF cookie and XSS the malicious user self.\n\n### Patches\n\nInvalid characters of CSRF tokens are stripped after reading cookie. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.\n\n### Workarounds\n\nNo need for workarounds.\n\n### References\n\nN/A\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6953.\n","status":"published","published":"2022-06-02T20:46:30Z","modified":"2023-01-11T05:07:18Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-pj96-4jhv-v792","title":"Cross site scripting via cookies in gogs","description":"### Impact\n\nThere is no known practical impact other than it is just possible to manipulate CSRF cookie and XSS the malicious user self.\n\n### Patches\n\nInvalid characters of CSRF tokens are stripped after reading cookie. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.\n\n### Workarounds\n\nNo need for workarounds.\n\n### References\n\nN/A\n\n### For more information\n\nIf you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6953.\n","status":"published","published":"2022-06-02T20:46:30Z","modified":"2024-08-21T15:42:05.077595Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:53.244788Z"},{"id":"GO-2022-0473","title":"Cross site scripting via cookies in gogs in gogs.io/gogs","description":"Cross site scripting via cookies in gogs in gogs.io/gogs","status":"published","published":"2024-08-21T15:11:33Z","modified":"2026-03-03T04:50:25.674738Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
