Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-17031
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:28 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-17031
Complete source record
{
"id": "2828670f516e935cc0453d83174a08516e99d8fc65ac925d4352fcc56b0ee026",
"url": "https://osv.dev/vulnerability/CVE-2018-17031",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-17031",
"summary": "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.",
"evidence": "osv:CVE-2018-17031",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-17031",
"aliases": [
"CVE-2018-17031",
"GHSA-px5r-fqj6-r2f8",
"GO-2023-1972"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gogs/gogs",
"type": "GIT",
"events": [
{
"introduced": "91441c3fb29d8ead645d8fffa4658d749d5b3fc3"
},
{
"last_affected": "91441c3fb29d8ead645d8fffa4658d749d5b3fc3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gogs:gogs:0.11.53:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.11.53"
},
{
"last_affected": "0.11.53"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.11.53",
"v0.11.53"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-17031.json"
}
}
],
"modified": "2026-10-20T10:50:21.838822039Z",
"provider": "osv",
"references": [
"https://github.com/gogs/gogs/issues/5397"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-17031",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 381610,
"published_at": "2018-09-14T02:29:00.39+00:00"
}