CVE-2021-23435 — Vulnerability in clearance — CVE Details
HIGH
Clearance Gem Open Redirect Vulnerability
Published September 13, 2021Updated July 8, 2026Source: osv
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`).
Advisory Timeline
- First published September 13, 2021 (1855 days ago).
- Last revised July 8, 2026 — 1758 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
Bundler
Update clearance to 2.5.0 or latergem install clearance -v 2.5.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: rubygems (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| clearance | rubygems | 0.10.0, 0.10.1, 0.10.2, 0.10.3.2 (+79 more) | 2.5.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-601Open RedirectMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.6 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23435ADVISORY
- https://github.com/thoughtbot/clearance/pull/945WEB
- https://github.com/advisories/GHSA-4hpq-rjcx-7vj9ADVISORY
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/clearance/CVE-2021-23435.ymlWEB
- https://github.com/thoughtbot/clearancePACKAGE
- https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284WEB
Frequently Asked Questions
- What is CVE-2021-23435?
- Clearance Gem Open Redirect Vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.6/10).
- How do I check if my project is affected by CVE-2021-23435?
- CVE-2021-23435 affects clearance. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-23435 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
7.6
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
GHSA-4hpq-rjcx-7vj9
SNYK-RUBY-CLEARANCE-1577284
Related CVEs
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2026-77601HIGH
OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies