6.1med
CVE-2018-17031
Gogs XSS Vulnerability
Also known as GHSA-px5r-fqj6-r2f8, GO-2023-1972
Published 8 y ago · modified 4 mo ago · JSON
CVSS
6.1
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
0.9%
percentile 59%
Public exploits
0
none known
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.
Exploit prediction (EPSS)
0.87% probability of exploitation in the next 30 days, higher than 59% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.12.0 | 0.12.0 |
Classification
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- github.com /gogs/gogs/issues/5397 · x_refsource_MISC, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2018-17031 · advisory
- github.com /gogs/gogs/pull/6008 · web
- github.com /gogs/gogs/commit/e14b6abf9dae13bc087c9d9db8fe7c7a5125c792 · web
- github.com /gogs/gogs · package
- github.com /advisories/GHSA-px5r-fqj6-r2f8 · advisory
Sources
- CVE List: CVE-2018-17031
- GitHub Advisory: GHSA-px5r-fqj6-r2f8
- NVD: CVE-2018-17031
- OSV: GO-2023-1972
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.