SecurityContext

CVE-2018-17031: Gogs - Stored XSS

  • Cve: CVE-2018-17031
  • Name: Gogs - Stored XSS
  • 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.
  • Impact: Attackers can execute malicious scripts in the context of the victim's browser, leading to session hijacking or data theft.
  • Remediation: Implement 'X-Content-Type-Options: nosniff' header and update to the latest version of Gogs.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to open or process a crafted .eml file
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.00869
  • Epss percentile: 0.59703
  • Assignee: [email protected]
  • Published at: 2018-09-14T02:29:00Z
  • Age in days: 2993
  • Modified at: 2026-06-17T01:45:15Z
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-17031
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/gogs/gogs/issues/5397nvd2018-09-14

References

UrlSourceTags
https://github.com/gogs/gogs/issues/5397nvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gogs:gogs= 0.11.53nonvd/v1/products/gogs/gogs

Projects

RepositoryLink kindsIndexedUrl
gogs/gogscommit, fix, issues, package, pullyes/v1/repositories/gogs/gogs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2018-09-14
  • Remote: yes
  • Exposed hosts: 174924
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports