6.1

CVE-2018-17031: gogs Cross-site Scripting

CVSS: 6.1v3.0MediumModified
AliasesGHSA-px5r-fqj6-r2f8GO-2023-1972
Published 14-09-2018Last modified 05-08-2024

Vulnerability summary

CVE-2018-17031 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in gogs. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 58% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
6.1/10
010
Medium · v3.0 (NVD)
EPSS score
0.87%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Timeline

  1. 14-09-2018
    PublishedVulnerability first disclosed.
  2. 05-08-2024
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

3 scores · 2 sources · 2 versions

EPSS trend

Probability

0.87%

Chance of exploitation in the next 30 days

Percentile

58%

Versus all other CVEs

30-day change

0.00 pp

From 0.87% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.87%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Gogs

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Gogs1 product
Gogs.io1 product
  • gogs< 0.12.0

2 vendors · 2 products

References

6 links