CVE-2018-17031: XSS

Published Sep 14, 2018
·
Updated

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.

Affected Software

2 affected componentsFixes available
go/gogs.io/gogs<=0.11.53
0.12.0
Gogs Gogs=0.11.53

Event History

Sep 14, 2018
CVE Published
via MITRE·02:00 AM
Data Sourced
via MITRE·02:00 AM
Description
May 14, 2022
Advisory Published
02:01 AM

Frequently Asked Questions

1

What is CVE-2018-17031?

CVE-2018-17031 is a vulnerability in Gogs 0.11.53 that allows an attacker to trigger MIME type sniffing, leading to XSS.

2

How does the vulnerability in Gogs 0.11.53 work?

The vulnerability in Gogs 0.11.53 allows an attacker to use a crafted .eml file to trigger MIME type sniffing, which can result in XSS.

3

What is the severity of CVE-2018-17031?

The severity of CVE-2018-17031 is medium with a CVSS score of 6.1.

4

How can I fix the vulnerability in Gogs 0.11.53?

To fix the vulnerability in Gogs 0.11.53, you need to update to version 0.12.0 or newer.

5

Where can I find more information about CVE-2018-17031?

You can find more information about CVE-2018-17031 at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-17031), [GitHub Advisory](https://github.com/advisories/GHSA-px5r-fqj6-r2f8)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203