{"id":"GHSA-pj96-4jhv-v792","aliases":["GHSA-pj96-4jhv-v792","GO-2022-0473"],"related":[],"kind":"vulnerability","state":"published","title":"Cross site scripting via cookies in gogs","summary":"### 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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Cross site scripting via cookies in gogs in gogs.io/gogs","format":"markdown","source":"go"}],"published":"2022-06-02T20:46:30.000Z","modified":"2026-03-03T04:50:25.674Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.8"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.8"}],"ecosystem":"Go","package":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","source":"go"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-pj96-4jhv-v792","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs/issues/6953","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/gogs/gogs","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pj96-4jhv-v792","url":"https://github.com/advisories/GHSA-pj96-4jhv-v792","licence":"CC-BY-4.0","modified":"2024-08-21T15:42:05.077Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0473","url":"https://pkg.go.dev/vuln/GO-2022-0473","licence":"CC-BY-4.0","modified":"2026-03-03T04:50:25.674Z"}],"updatedAt":"2026-11-25T22:56:23.136Z"}