CVE-2021-23435
JSON

7.6high

Open Redirect

Severity
7.6high CVSS:3.1 by snyk
Exploit likelihood
0.70% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-4hpq-rjcx-7vj9SNYK-RUBY-CLEARANCE-1577284

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

Product or packageVersionsReported by
clearancefrom unspecified before 2.5.0CVE List
clearance (RubyGems)before 2.5.0GitHub Advisory Database
thoughtbot clearancebefore 2.5.0NVD

All scores

snyk7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
GitHub7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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

GitHub Advisory Database

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

NVD (es)

Esto afecta al paquete clearance versiones anteriores a 2.5.0. La vulnerabilidad puede ser posible cuando los usuarios son capaces de establecer el valor de session[:return_to]. Si el valor usado para return_to contiene múltiples barras inclinadas (/////example.com) el usuario acaba siendo redirigido al dominio externo que viene después de las barras (http://example.com)

References

Sources

SourceRecordLicence
CVE ListCVE-2021-23435 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-4hpq-rjcx-7vj9 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-23435 changed 2026-06-17Public domain