{"cve":"CVE-2018-17031","nvd":{"published":"2018-09-14T02:29:00.390","modified":"2026-06-17T01:45:15.077","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/gogs/gogs/issues/5397","https://github.com/gogs/gogs/issues/5397"],"products":["gogs:gogs"],"source":"nvd","synced_at":"2026-10-19T20:53:14.491561039+00:00"},"epss":{"cve":"CVE-2018-17031","score":0.00869,"percentile":0.58797,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-px5r-fqj6-r2f8","url":"https://osv.dev/vulnerability/GHSA-px5r-fqj6-r2f8","summary":"Gogs XSS Vulnerability","modified":"2024-08-20T20:58:38.878387Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.12.0"],"fixed":["0.12.0"]}]},{"id":"GO-2023-1972","url":"https://osv.dev/vulnerability/GO-2023-1972","summary":"Gogs XSS Vulnerability in gogs.io/gogs","modified":"2026-03-03T04:54:04.668567Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.12.0"],"fixed":["0.12.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}