CVEvulnerability
CVE-2021-23435
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-09-12
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.6 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS 2.0 ([email protected])
- 5.8 MEDIUM — AV:N/AC:M/Au:N/C:P/I:P/A:N
- Weaknesses
- CWE-601
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 configurations
• thoughtbot clearance (< 2.5.0)
Related
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness
References
- https://github.com/thoughtbot/clearance/pull/945 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284 Third Party Advisory
- https://github.com/thoughtbot/clearance/pull/945 Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284 Third Party Advisory