{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-22903","published":"2021-06-11T16:15:11.437000Z","last_modified":"2026-06-17T03:37:59.600000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-601"],"cpes":[{"criteria":"cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*","part":"a","vendor":"rubyonrails","product":"rails","version_start_including":"6.1.1","version_end_excluding":"6.1.3.2"},{"criteria":"cpe:2.3:a:rubyonrails:rails:6.1.0:rc2:*:*:*:*:*:*","part":"a","vendor":"rubyonrails","product":"rails","version":"6.1.0"}],"cpes_truncated":false,"vendors":["rubyonrails"],"products":["rubyonrails/rails"],"epss":{"score":0.0123,"percentile":0.68907,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-5hq2-xf89-9jxq","ecosystem":"RubyGems","name":"actionpack","purl":"pkg:gem/actionpack","ranges":[{"introduced":"6.1.0.rc2","fixed":"6.1.3.2"}],"versions":["6.1.0","6.1.0.rc2","6.1.1","6.1.2","6.1.2.1","6.1.3","6.1.3.1"],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2021-22903/","html_en":"/en/cve/CVE-2021-22903/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-22903","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-22903"},"untrusted":{"vendor_name":"Rubyonrails","product_name":"Rails","desc_en":"The actionpack ruby gem before 6.1.3.2 suffers from a possible open redirect vulnerability. Specially crafted Host headers in combination with certain \"allowed host\" formats can cause the Host Authorization middleware in Action Pack to redirect users to a malicious website. This is similar to CVE-2021-22881. Strings in config.hosts that do not have a leading dot are converted to regular expressions without proper escaping. This causes, for example, `config.hosts << \"sub.example.com\"` to permit a request with a Host header value of `sub-example.com`.","affected":[],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2021-22903-possible-open-redirect-vulnerability-in-action-pack/77867","tags":["Mitigation","Patch","Vendor Advisory"]},{"url":"https://hackerone.com/reports/1148025","tags":["Permissions Required","Third Party Advisory"]}]}}