Security advisory
Spring Security OAuth, versions 2.3 prior to 2.3.5, and 2.2 prior to 2.2.4, and 2.1 prior to 2.1.4, and 2.0 prior to 2.0.17, and older unsupported versions could be susceptible to an open redirector attack that can leak an authorization code. A malicious user or attacker can craft a request to the authorization endpoint using the authorization code grant type, and specify a manipulated redirection URI via the "redirect_uri" parameter. This can cause the authorization server to redirect the resource owner user-agent to a URI under the control of the attacker with the leaked authorization code. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and uses the DefaultRedirectResolver in the AuthorizationEndpoint. This vulnerability does not expose applications that: Act in the role of an Authorization Server and uses a different RedirectResolver implementation other than DefaultRedirectResolver, act in the role of a Resource Server only (e.g. @EnableResourceServer), act in the role of a Client only (e.g. @EnableOAuthClient).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-3778
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 07:06 UTC · Revision 1
Source evidence
Spring Security OAuth, versions 2.3 prior to 2.3.5, and 2.2 prior to 2.2.4, and 2.1 prior to 2.1.4, and 2.0 prior to 2.0.17, and older unsupported versions could be susceptible to an open redirector attack that can leak an authorization code. A malicious user or attacker can craft a request to the authorization endpoint using the authorization code grant type, and specify a manipulated redirection URI via the "redirect_uri" parameter. This can cause the authorization server to redirect the resource owner user-agent to a URI under the control of the attacker with the leaked authorization code. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and uses the DefaultRedirectResolver in the AuthorizationEndpoint. This vulnerability does not expose applications that: Act in the role of an Authorization Server and uses a different RedirectResolver implementation other than DefaultRedirectResolver, act in the role of a Resource Server only (e.g. @EnableResourceServer), act in the role of a Client only (e.g. @EnableOAuthClient).
osv:CVE-2019-3778
Complete source record
{
"id": "3b6a5c2ffafe3c6a645165622cb5f0433a6a47f1cd9abf802e123bb861987efb",
"url": "https://osv.dev/vulnerability/CVE-2019-3778",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-3778",
"summary": "Spring Security OAuth, versions 2.3 prior to 2.3.5, and 2.2 prior to 2.2.4, and 2.1 prior to 2.1.4, and 2.0 prior to 2.0.17, and older unsupported versions could be susceptible to an open redirector attack that can leak an authorization code. A malicious user or attacker can craft a request to the authorization endpoint using the authorization code grant type, and specify a manipulated redirection URI via the \"redirect_uri\" parameter. This can cause the authorization server to redirect the resource owner user-agent to a URI under the control of the attacker with the leaked authorization code. This vulnerability exposes applications that meet all of the following requirements: Act in the role of an Authorization Server (e.g. @EnableAuthorizationServer) and uses the DefaultRedirectResolver in the AuthorizationEndpoint. This vulnerability does not expose applications that: Act in the role of an Authorization Server and uses a different RedirectResolver implementation other than DefaultRedirectResolver, act in the role of a Resource Server only (e.g. @EnableResourceServer), act in the role of a Client only (e.g. @EnableOAuthClient).",
"evidence": "osv:CVE-2019-3778",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2019-3778",
"aliases": [
"CVE-2019-3778",
"GHSA-77rv-6vfw-x4gc"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/spring-attic/spring-security-oauth",
"type": "GIT",
"events": [
{
"introduced": "e5f9ff3be7d9cf1101d96aa3e169e34f33421516"
},
{
"fixed": "565be5a75ae1b1786542b5f6a40c3c8ae3f6244c"
},
{
"introduced": "220183d8cf56860cddae2def4efdb1a552b60d69"
},
{
"fixed": "f4f67d2653104d5e383b8bd5f682b1f53a909c40"
},
{
"introduced": "4701c737204017ddfed2e18069de9d77191a6813"
},
{
"fixed": "4db74c8d3f5f670ac02f132490be256bee240ddb"
},
{
"introduced": "f0b82d84dbd02d98a4e313d9357906b053ca4b18"
},
{
"fixed": "a453deac3b3fe2c380dde59aaebd9e220453a31c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:pivotal_software:spring_security_oauth:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.17"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:pivotal_software:spring_security_oauth:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:pivotal_software:spring_security_oauth:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:pivotal_software:spring_security_oauth:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.3.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"1.0.10.RELEASE",
"2.1.3.RELEASE",
"2.2.3.RELEASE",
"2.0.16.RELEASE",
"2.3.4.RELEASE",
"2.3.3.RELEASE",
"2.2.2.RELEASE",
"2.1.2.RELEASE",
"2.0.15.RELEASE",
"2.3.2.RELEASE",
"2.3.1.RELEASE",
"2.3.0.RELEASE",
"2.2.1.RELEASE",
"2.2.0.RELEASE",
"2.1.1.RELEASE",
"2.0.14.RELEASE",
"jwt1.0.8.RELEASE",
"2.1.0.RELEASE",
"2.0.13.RELEASE",
"jwt1.0.7.RELEASE",
"jwt1.0.6.RELEASE",
"2.0.12.RELEASE",
"2.0.11.RELEASE",
"2.0.10.RELEASE",
"2.0.9.RELEASE",
"2.0.8.RELEASE",
"2.0.3.RELEASE",
"2.0.2.RELEASE",
"2.0.1.RELEASE",
"2.0.0.RELEASE"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-3778.json"
}
}
],
"modified": "2026-10-24T10:30:48.713914503Z",
"provider": "osv",
"references": [
"https://pivotal.io/security/cve-2019-3778",
"https://www.oracle.com/security-alerts/cpujan2021.html"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:oracle:banking_corporate_lending:14.1.0:*:*:*:*:*:*:*",
"cpe:2.3:a:oracle:banking_corporate_lending:14.3.0:*:*:*:*:*:*:*",
"cpe:2.3:a:oracle:banking_corporate_lending:14.4.0:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:banking_corporate_lending",
"extracted_events": [
{
"range": [
{
"introduced": "14.1.0"
},
{
"last_affected": "14.1.0"
},
{
"introduced": "14.3.0"
},
{
"last_affected": "14.3.0"
},
{
"introduced": "14.4.0"
},
{
"last_affected": "14.4.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-3778",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 436824,
"published_at": "2019-03-07T18:29:00.54+00:00"
}