CVE-2018-17031: gogs Cross-site Scripting
CVSS: 6.1v3.0MediumModified
AliasesGHSA-px5r-fqj6-r2f8GO-2023-1972
Published 14-09-2018Last modified 05-08-2024
Vulnerability summary
CVE-2018-17031 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in gogs. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 58% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
6.1/10
010
Medium · v3.0 (NVD)EPSS score
0.87%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Timeline
- 14-09-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 2 sources · 2 versionsMedium 6.1Preferred score · NVD (NIST)
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NSourcesAll 2 agree
- OSV · GoEcosystem advisory · calculated6.1MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Medium 4.3Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:N/I:P/A:NSourcesSingle source
EPSS trend
Probability
0.87%
Chance of exploitation in the next 30 days
Percentile
58%
Versus all other CVEs
30-day change
0.00 pp
From 0.87% on 18-09-2026
18-09-202618-10-2026
EPSS score0.87%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGogs
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Gogs1 product
- gogs0.11.53
Gogs.io1 product
- gogs< 0.12.0
2 vendors · 2 products
References
6 links- github.com/gogs/gogsPACKAGE