7.6high
Open Redirect
- Severity
- 7.6high CVSS:3.1 by snyk
- Exploit likelihood
- 0.70% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-4hpq-rjcx-7vj9SNYK-RUBY-CLEARANCE-1577284
Description
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| clearance | from unspecified before 2.5.0 | CVE List |
| clearance (RubyGems) | before 2.5.0 | GitHub Advisory Database |
| thoughtbot clearance | before 2.5.0 | NVD |
All scores
| snyk | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| GitHub | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Classification
What each source says
CVE List
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).
GitHub Advisory Database
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).
NVD (es)
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)
References
| https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284 | third-party-advisory, web | |
| https://github.com/thoughtbot/clearance/pull/945 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23435 | advisory | |
| https://github.com/advisories/GHSA-4hpq-rjcx-7vj9 | advisory | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/clearance/CVE-2021-23435.yml | web | |
| https://github.com/thoughtbot/clearance | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23435 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4hpq-rjcx-7vj9 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-23435 changed 2026-06-17 | Public domain |