CVE-2021-23435
MEDIUM 6.1CVSS 3.1Clearance Gem Open Redirect Vulnerability
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).
- Published
- 12 Sep 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-4hpq-rjcx-7vj9SNYK-RUBY-CLEARANCE-1577284
- Sources
- NVDJSONOSV GHSA-4hpq-rjcx-7vj9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thoughtbot | clearancecpe:2.3:a:thoughtbot:clearance:*:*:*:*:*:*:*:* |
< 2.5.0 | 2.5.0 |
| OSV | RubyGems | clearance | < 2.5.0 | 2.5.0 |
References
- https://github.com/thoughtbot/clearance/pull/945 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284 · 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 12 Sep 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Sep 2021)