# CVE-2021-23435: Open Redirect

- Severity: High 7.6 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2021-09-12T20:05:10.404Z
- Modified: 2026-07-08T06:49:52.790Z
- Also known as: GHSA-4hpq-rjcx-7vj9, SNYK-RUBY-CLEARANCE-1577284
- Weaknesses: CWE-601
- Assigned by: snyk

## 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).

(As written by CVE List.)

## Affected

- clearance: from unspecified before 2.5.0
- clearance (RubyGems): before 2.5.0
- thoughtbot clearance: before 2.5.0

## Every score

- snyk: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## 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

- CVE List: [CVE-2021-23435](https://www.cve.org/CVERecord?id=CVE-2021-23435), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-4hpq-rjcx-7vj9](https://github.com/advisories/GHSA-4hpq-rjcx-7vj9), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-23435](https://nvd.nist.gov/vuln/detail/CVE-2021-23435), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-23435 · Whole record: https://cve.day/CVE-2021-23435.json · Rebuilt by cve.day 2026-11-25T22:58:03.894Z
