{"schemaVersion":3,"id":"CVE-2019-3778","aliases":["GHSA-77rv-6vfw-x4gc"],"status":"published","duplicateOf":null,"title":null,"description":"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).","dates":{"published":"2019-03-07T19:00:00.000Z","modified":"2024-09-16T20:57:23.699Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":10,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.4,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.16596,"percentile":0.96989,"severity":"medium","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":1.097999999999999,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.15498},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.16596,"percentile":0.96989}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.15498,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.16596,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.16596,"percentile":0.96989}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"47000","name":"Spring Security OAuth - Open Redirector","source":"exploit-database","url":"https://www.exploit-db.com/exploits/47000","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["java"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"java","file":"exploits/java/webapps/47000.txt","codes":["CVE-2019-3778","CVE-2019-11269"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site ('Open Redirect')","description":"The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/601.html"}],"affected":[{"vendor":"org.springframework.security.oauth","product":"spring-security-oauth","name":"org.springframework.security.oauth:spring-security-oauth","label":"spring-security-oauth","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth","purlType":"maven","versions":[{"text":"< 2.0.17.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.1.0.RELEASE, < 2.1.4.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0.RELEASE, < 2.2.4.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0.RELEASE, < 2.3.5.RELEASE","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.17.RELEASE | ≥ 2.1.0.RELEASE, < 2.1.4.RELEASE | ≥ 2.2.0.RELEASE, < 2.2.4.RELEASE | ≥ 2.3.0.RELEASE, < 2.3.5.RELEASE","eol":null,"hubHref":null},{"vendor":"org.springframework.security.oauth","product":"spring-security-oauth2","name":"org.springframework.security.oauth:spring-security-oauth2","label":"spring-security-oauth2","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.springframework.security.oauth/spring-security-oauth2","purlType":"maven","versions":[{"text":"< 2.0.17.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.1.0.RELEASE, < 2.1.4.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0.RELEASE, < 2.2.4.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0.RELEASE, < 2.3.5.RELEASE","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.17.RELEASE | ≥ 2.1.0.RELEASE, < 2.1.4.RELEASE | ≥ 2.2.0.RELEASE, < 2.2.4.RELEASE | ≥ 2.3.0.RELEASE, < 2.3.5.RELEASE","eol":null,"hubHref":null},{"vendor":"oracle","product":"banking_corporate_lending","name":"banking corporate lending","label":"banking_corporate_lending","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"14.1.0","noFixRecorded":false,"fixedIn":null},{"text":"14.3.0","noFixRecorded":false,"fixedIn":null},{"text":"14.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"14.1.0 | 14.3.0 | 14.4.0","eol":null,"hubHref":"/vendor/oracle/banking_corporate_lending"},{"vendor":"pivotal_software","product":"spring_security_oauth","name":"spring security oauth","label":"spring_security_oauth","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.0.17","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.1.0, < 2.1.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2.0, < 2.2.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.3.0, < 2.3.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.0.17 | ≥ 2.1.0, < 2.1.4 | ≥ 2.2.0, < 2.2.4 | ≥ 2.3.0, < 2.3.5","eol":null,"hubHref":"/vendor/pivotal_software/spring_security_oauth"},{"vendor":"spring","product":"spring security oauth","name":"Spring Security OAuth","label":"spring security oauth","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.3, < 2.3.5.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0, < 2.0.17.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.1, < 2.1.4.RELEASE","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.2, < 2.2.4.RELEASE","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.3, < 2.3.5.RELEASE | ≥ 2.0, < 2.0.17.RELEASE | ≥ 2.1, < 2.1.4.RELEASE | ≥ 2.2, < 2.2.4.RELEASE","eol":null,"hubHref":"/vendor/spring/spring_security_oauth"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/107153","label":"www.securityfocus.com/bid/107153","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory"]},{"url":"https://www.oracle.com/security-alerts/cpujan2021.html","label":"www.oracle.com/security-alerts/cpujan2021.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"http://packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html","label":"packetstormsecurity.com/files/153299/Spring-Security-OAuth-2.3-Open-Redirection.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","WEB","Third Party Advisory","VDB Entry"]},{"url":"https://pivotal.io/security/cve-2019-3778","label":"pivotal.io/security/cve-2019-3778","hostname":"pivotal.io","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-3778","label":"nvd.nist.gov/vuln/detail/CVE-2019-3778","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/spring-attic/spring-security-oauth","label":"github.com/spring-attic/spring-security-oauth","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://web.archive.org/web/20200227084837/http://www.securityfocus.com/bid/107153","label":"web.archive.org/web/20200227084837/http://www.securityfocus.com/bid/107153","hostname":"web.archive.org","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-03-07T19:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T20:57:23.699Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":39,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T16:17:08.937Z","stale":false,"partial":false}}