{"id":"CVE-2018-17031","published":"2018-09-14T02:00:00Z","modified":"2024-08-05T10:39:59Z","title":"In Gogs 0.11.53, an attacker can use a crafted .eml file to trigger MIME type sniffing, which leads to XSS, as…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00869,"percentile":0.59665,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/gogs/gogs/issues/5397","tags":["x_refsource_MISC"]}],"priority":{"score":11.9,"factors":[{"name":"EPSS percentile","points":11.93}]},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.12.0"],"patched":["0.12.0"],"from":["GHSA-px5r-fqj6-r2f8","GO-2023-1972"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting weakness in Gogs 0.11.53, where the application serves crafted .eml files without an \"X-Content-Type-Options: nosniff\" header, allowing MIME type sniffing. An attacker who can supply such a crafted .eml file can cause the browser to sniff and render it as active content, leading to XSS, as demonstrated in Internet Explorer.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:52Z"},"euvd":{"id":"EUVD-2022-4849","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gogs-gogs-cve-2018-15192","parents":[{"from":"CVE-2018-15192","to":"CVE-2018-17031","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/assets/public/public_gen.go"],"commits":["https://github.com/gogs/gogs/commit/22717a1c064511cf37c46af5e650baf7184cf25b","https://github.com/gogs/gogs/commit/e14b6abf9dae13bc087c9d9db8fe7c7a5125c792"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2018-17031","to":"CVE-2020-14958","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/assets/public/public_gen.go"],"commits":["https://github.com/gogs/gogs/commit/e14b6abf9dae13bc087c9d9db8fe7c7a5125c792","https://github.com/gogs/gogs/commit/82ff0c5852f29daa5f95d965fd50665581e7ea3c"],"basis":"shared function","functions":["cssGogsMinCss","cssGogsMinCssMap"]}]}]}}