All vulnerabilities

Servers and applications

CVE-2018-17031

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.

Severity
Medium 6.1
Published
14 Sept 2018
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Exploit chance
0.9% in the next 30 daysHigher than 59% of CVEs. EPSS by FIRST, 10 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Read some data · Change some data
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Sources
NVD

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Version 0.11.53

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2018-17031
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2018-17031