{"id":"CVE-2021-23435","aliases":["CVE-2021-23435","GHSA-4hpq-rjcx-7vj9","SNYK-RUBY-CLEARANCE-1577284"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"en","text":"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`).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Esto afecta al paquete clearance versiones anteriores a 2.5.0. La vulnerabilidad puede ser posible cuando los usuarios son capaces de establecer el valor de session[:return_to]. Si el valor usado para return_to contiene múltiples barras inclinadas (/////example.com) el usuario acaba siendo redirigido al dominio externo que viene después de las barras (http://example.com)","source":"nvd"}],"published":"2021-09-12T20:05:10.404Z","modified":"2026-07-08T06:49:52.790Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H","score":7.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"2.5.0","status":"affected"}],"product":"clearance","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5.0"}],"ecosystem":"RubyGems","package":"clearance","purl":"pkg:gem/clearance","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.5.0"}],"vendor":"thoughtbot","product":"clearance","cpe":"cpe:2.3:a:thoughtbot:clearance:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/thoughtbot/clearance/pull/945","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23435","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-4hpq-rjcx-7vj9","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/clearance/CVE-2021-23435.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/thoughtbot/clearance","tags":["package"],"sources":["ghsa"]}],"credits":["Snyk Security Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-23435","url":"https://www.cve.org/CVERecord?id=CVE-2021-23435","licence":"CVE Terms of Use","modified":"2024-09-16T23:55:46.556Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4hpq-rjcx-7vj9","url":"https://github.com/advisories/GHSA-4hpq-rjcx-7vj9","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:52.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-23435","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23435","licence":"Public domain","modified":"2026-06-17T03:38:45.490Z"}],"updatedAt":"2026-11-25T22:58:03.894Z","epss":{"score":0.00703,"percentile":0.54524,"date":"2026-12-01T12:00:22.000Z"}}