CVE-2018-17031Gogs
Medium 6.1 No auth needed
Follow: this CVE · Gogs · Gogs We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.0
- 6.1
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 60
- Auth required
- No
- Published
- Sep 14, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Gogs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.12.0 |
0.12.0 |
go get gogs.io/gogs@v0.12.0 |
| Go | gogs.io/gogs |
< 0.12.0 |
0.12.0 |
go get gogs.io/gogs@v0.12.0 |
Per OSV / GitHub Advisories (GHSA-px5r-fqj6-r2f8, GO-2023-1972). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | 0.11.53 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory