Medium
Security advisory
Open redirect vulnerability in Gogs before 0.12 allows remote attackers to redirect users to arbitrary websites and conduct phishing attacks via an initial /\ substring in the user/login redirect_to parameter, related to the function isValidRedirect in routes/user/auth.go.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-15178
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:03 UTC · Revision 1
Source evidence
Open redirect vulnerability in Gogs before 0.12 allows remote attackers to redirect users to arbitrary websites and conduct phishing attacks via an initial /\ substring in the user/login redirect_to parameter, related to the function isValidRedirect in routes/user/auth.go.
osv:CVE-2018-15178
Complete source record
{
"id": "3ebce0781d76fdd52049cc8bdc7352efd4249aa75e050f06e26f5889a6b7c8ab",
"url": "https://osv.dev/vulnerability/CVE-2018-15178",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-15178",
"summary": "Open redirect vulnerability in Gogs before 0.12 allows remote attackers to redirect users to arbitrary websites and conduct phishing attacks via an initial /\\ substring in the user/login redirect_to parameter, related to the function isValidRedirect in routes/user/auth.go.",
"evidence": "osv:CVE-2018-15178",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-15178",
"aliases": [
"CVE-2018-15178",
"GHSA-cpgw-2wxr-pww3",
"GO-2022-0822"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gogs/gogs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "f17e7d5a2c36c52a1121d2315f3d75dcd8053b89"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.12"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.11.91",
"v0.11.86",
"v0.11.79",
"v0.11.66",
"v0.11.53",
"v0.11.43",
"v0.11.34",
"v0.11.33",
"v0.11.29",
"v0.11.19",
"v0.11.4",
"v0.11",
"v0.11rc",
"v0.10.18",
"v0.10.8",
"v0.10",
"v0.10rc",
"v0.9.141",
"v0.9.128",
"v0.9.113",
"v0.9.97",
"v0.9.71",
"v0.9.60",
"v0.9.48",
"v0.9.46",
"v0.9.13",
"v0.9.0",
"v0.8.43",
"v0.8.25",
"v0.8.10",
"v0.8.0",
"v0.7.33",
"v0.7.22",
"v0.7.19",
"v0.7.6",
"v0.7.0",
"v0.6.15",
"v0.6.9",
"v0.6.3",
"v0.6.1",
"v0.5.13",
"v0.5.11",
"v0.5.9",
"v0.5.8",
"v0.5.5",
"v0.5.2",
"v0.5.0",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.1",
"v0.3.0",
"v0.2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-15178.json"
}
}
],
"modified": "2026-10-20T10:49:49.214075640Z",
"provider": "osv",
"references": [
"https://github.com/gogs/gogs/pull/5365",
"https://github.com/gogs/gogs/issues/5364"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2018-15178",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380839,
"published_at": "2018-08-08T00:29:02.583+00:00"
}