GHSA-px5r-fqj6-r2f8

Suggest an improvement
Source
https://github.com/advisories/GHSA-px5r-fqj6-r2f8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-px5r-fqj6-r2f8/GHSA-px5r-fqj6-r2f8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-px5r-fqj6-r2f8
Aliases
Published
2022-05-14T02:01:21Z
Modified
2024-08-20T20:58:38Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Gogs XSS Vulnerability
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-07-25T20:11:37Z",
    "nvd_published_at":  "2018-09-14T02:29:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

Go / gogs.io/gogs

Package

Name
gogs.io/gogs
View open source insights on deps.dev
Purl
pkg:golang/gogs.io/gogs

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.12.0

Database specific

last_known_affected_version_range
"<= 0.11.53"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-px5r-fqj6-r2f8/GHSA-px5r-fqj6-r2f8.json"