{"id":"CVE-2018-17031","aliases":["GHSA-px5r-fqj6-r2f8","GO-2023-1972"],"url":"https://o3.security/vulnerability/CVE-2018-17031","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.","published":"2018-09-14T02:29:00.390Z","modified":"2026-10-20T10:50:21.838822039Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.01112,"percentile":0.62983,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":"0.12.0"}],"fix":{"url":"https://github.com/gogs/gogs/pull/6008","label":"gogs/gogs#6008"},"references":[{"type":"EVIDENCE","url":"https://github.com/gogs/gogs/issues/5397"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-17031"},{"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:50:21.838822039Z"}}