{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:thoughtbot:clearance:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.5.0"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3691c23b8447071ba3f6aa6f6f9e30dd3bc2ed6f"
            }
          ],
          "repo": "https://github.com/thoughtbot/clearance",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "SNYK-RUBY-CLEARANCE-1577284"
  ],
  "database_specific": {},
  "details": "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).",
  "id": "CVE-2021-23435",
  "modified": "2026-07-08T05:37:46.490470603Z",
  "published": "2021-09-12T20:15:07.443Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284"
    },
    {
      "type": "FIX",
      "url": "https://github.com/thoughtbot/clearance/pull/945"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}