{"id":"GHSA-px5r-fqj6-r2f8","summary":"Gogs XSS Vulnerability","details":"In Gogs 0.11.53, an attacker can use a crafted .eml file to trigger MIME type sniffing, which leads to XSS, as demonstrated by Internet Explorer, because an \"X-Content-Type-Options: nosniff\" header is not sent.","aliases":["CVE-2018-17031","GO-2023-1972"],"modified":"2024-08-20T20:58:38.878387Z","published":"2022-05-14T02:01:21Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-07-25T20:11:37Z","nvd_published_at":"2018-09-14T02:29:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17031"},{"type":"WEB","url":"https://github.com/gogs/gogs/issues/5397"},{"type":"WEB","url":"https://github.com/gogs/gogs/pull/6008"},{"type":"WEB","url":"https://github.com/gogs/gogs/commit/e14b6abf9dae13bc087c9d9db8fe7c7a5125c792"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"}],"affected":[{"package":{"name":"gogs.io/gogs","ecosystem":"Go","purl":"pkg:golang/gogs.io/gogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.11.53","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-px5r-fqj6-r2f8/GHSA-px5r-fqj6-r2f8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}