{"id":"GHSA-4hpq-rjcx-7vj9","summary":"Clearance Gem Open Redirect Vulnerability","details":"This affects the package clearance before 2.5.0. The vulnerability can be possible when users are able to set the value of `session[:return_to]`. If the value used for return_to contains multiple leading slashes (`/////example.com`) the user ends up being redirected to the external domain that comes after the slashes (`http://example.com`).","aliases":["CVE-2021-23435","SNYK-RUBY-CLEARANCE-1577284"],"modified":"2026-07-08T06:49:52.790771388Z","published":"2021-09-13T20:05:09Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-09-13T19:07:07Z","nvd_published_at":null,"cwe_ids":["CWE-601"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23435"},{"type":"WEB","url":"https://github.com/thoughtbot/clearance/pull/945"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4hpq-rjcx-7vj9"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/clearance/CVE-2021-23435.yml"},{"type":"PACKAGE","url":"https://github.com/thoughtbot/clearance"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284"}],"affected":[{"package":{"name":"clearance","ecosystem":"RubyGems","purl":"pkg:gem/clearance"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0"}]}],"versions":["0.10.0","0.10.1","0.10.2","0.10.3.2","0.10.4","0.10.5","0.11.0","0.11.1","0.11.2","0.12.0","0.13.0","0.13.2","0.14.0","0.15.0","0.16.0","0.16.1","0.16.2","0.16.3","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","0.8.8","0.9.0.rc1","0.9.0.rc2","0.9.0.rc3","0.9.0.rc4","0.9.0.rc5","0.9.0.rc6","0.9.0.rc7","0.9.0.rc8","0.9.0.rc9","0.9.1","1.0.0","1.0.0.rc1","1.0.0.rc2","1.0.0.rc3","1.0.0.rc4","1.0.0.rc6","1.0.0.rc7","1.0.0.rc8","1.0.1","1.1.0","1.10.1","1.11.0","1.12.0","1.12.1","1.13.0","1.14.0","1.14.1","1.14.2","1.15.0","1.15.1","1.16.0","1.16.1","1.16.2","1.17.0","1.2.0","1.2.1","1.3.0","1.4.0","1.4.1","1.4.2","1.4.3","1.5.0","1.5.1","1.6.0","1.6.1","1.7.0","1.8.0","1.8.1","1.9.0","2.0.0","2.0.0.beta1","2.0.0.beta2","2.1.0","2.2.0","2.2.1","2.3.0","2.3.1","2.4.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-4hpq-rjcx-7vj9/GHSA-4hpq-rjcx-7vj9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H"}]}