Live threats

All CVEs / Gogs

CVE-2018-17031Gogs

Medium 6.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gogs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gogsgogs0.11.53

Official sources

References

Links published by the sources. Open them with care.