{"id":"CVE-2021-28378","aliases":["ALPINE-CVE-2021-28378","BIT-gitea-2021-28378","EUVD-2021-2059","GHSA-g95p-88p4-76cm","GO-2022-0832"],"status":"published","title":"Cross-site Scripting in Gitea","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","severity":{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AC:H/AV:N/A:N/C:L/I:L/PR:L/S:U/UI:R","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.08762,"percentile":0.95208,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-79"],"published":"2021-03-15T05:20:50Z","modified":"2026-11-03T06:32:32Z","exploits":[{"source":"pocgithub","id":"pandatix/CVE-2021-28378","title":"pandatix/CVE-2021-28378","date":"2021-08-01","url":"https://github.com/pandatix/CVE-2021-28378"}],"fixes":[{"ecosystem":"Go","package":"code.gitea.io/gitea","fixed_in":["1.13.4"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.14","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"gitea","fixed_in":["1.13.4-r0"],"sources":["osv"]},{"ecosystem":"Bitnami","package":"gitea","fixed_in":["1.12.7","1.13.4"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.4"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.13.4-r0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"1.12.0"},{"fixed":"1.12.7"},{"introduced":"1.13.0"},{"fixed":"1.13.4"}]}]},{"source":"osv","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.13.4"}]}]},{"source":"osv","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.13.4"}]}]}],"products":[{"vendor":"gitea","product":"gitea"}],"references":[{"url":"https://github.com/go-gitea/gitea/pull/14898","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix","web"]},{"url":"https://blog.gitea.io/2021/03/gitea-1.13.4-is-released/","tags":["x_refsource_MISC","x_transferred","Release Notes","Vendor Advisory","advisory"]},{"url":"https://github.com/PandatiX/CVE-2021-28378","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","advisory","evidence","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28378","tags":["web","advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/14899","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g95p-88p4-76cm","tags":["advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-28378","tags":["advisory"]},{"url":"https://blog.gitea.io/2021/03/gitea-1.13.4-is-released","tags":["web"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-28378","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-03-15T05:20:50Z","modified":"2024-08-03T21:40:14.222Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AC:H/AV:N/A:N/C:L/I:L/PR:L/S:U/UI:R","level":"low","assessor":"cna"}],"updated_at":"2026-11-02T14:33:09.175141Z"}],"euvd":[{"id":"EUVD-2021-2059","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-03-15T05:20:50Z","modified":"2024-08-03T21:40:14Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AC:H/AV:N/A:N/C:L/I:L/PR:L/S:U/UI:R","level":"low"}],"updated_at":"2026-11-03T03:24:46.751124Z"}],"ghsa":[{"id":"GHSA-g95p-88p4-76cm","title":"Cross-site Scripting in Gitea","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-09-27T20:17:39Z","modified":"2023-02-01T05:06:26Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:39.086869Z"}],"nvd":[{"id":"CVE-2021-28378","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-03-15T06:15:12.423Z","modified":"2026-06-17T03:46:18.38Z","cvss":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","level":"low","assessor":"secondary"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":3.5,"vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:50.805771Z"}],"osv":[{"id":"ALPINE-CVE-2021-28378","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-03-15T06:15:12.423Z","modified":"2026-11-03T06:32:32.151132242Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T07:17:41.158523Z"},{"id":"CVE-2021-28378","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-03-15T06:15:12.423Z","modified":"2026-10-27T02:45:04.930205818Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:19.129331Z"},{"id":"GHSA-g95p-88p4-76cm","title":"Cross-site Scripting in Gitea","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2021-09-27T20:17:39Z","modified":"2024-08-21T15:58:39.462211Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.472172Z"},{"id":"BIT-gitea-2021-28378","description":"Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.","status":"published","published":"2024-03-06T10:55:28.275Z","modified":"2026-09-08T08:47:33.134393114Z","updated_at":"2026-11-02T15:28:29.999658Z"},{"id":"GO-2022-0832","title":"Cross-site Scripting in Gitea in code.gitea.io/gitea","description":"Cross-site Scripting in Gitea in code.gitea.io/gitea","status":"published","published":"2024-08-21T15:29:04Z","modified":"2026-03-03T04:52:18.307544Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
