CVE-2021-23435Thoughtbot Clearance
Medium 6.1 No auth needed
Follow: this CVE · Thoughtbot · Thoughtbot Clearance We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Sep 12, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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).
What to do
- Apply the vendor's security update for Clearance.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | clearance |
< 2.5.0 |
2.5.0 |
gem "clearance", ">= 2.5.0" |
Per OSV / GitHub Advisories (GHSA-4hpq-rjcx-7vj9). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thoughtbot | clearance | < 2.5.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- snyk.io Third Party Advisory