{"id":"CVE-2023-28362","published":"2025-01-09T00:33:47Z","modified":"2025-05-02T23:02:56Z","title":"The redirect_to method in Rails allows provided values to contain characters which are not legal in an HTTP header value","vendor":"Rails","product":"Action Pack","tier":"tail","description":{"text":"The redirect_to method in Rails allows provided values to contain characters which are not legal in an HTTP header value. This results in the potential for downstream services which enforce RFC compliance on HTTP response headers to remove the assigned Location header.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00333,"percentile":0.27172,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132","tags":[]},{"url":"https://github.com/advisories/GHSA-4g8v-vg43-wpgf","tags":[]},{"url":"https://github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441","tags":[]},{"url":"https://github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250502-0009/","tags":[]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":5.43},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"rails","affectedVersions":[{"vendor":"Rails","product":"Action Pack","versions":[">= 7.0.5.1, < 7.0.5.1",">= 6.1.7.4, < 6.1.7.4"]}],"affected":[{"ecosystem":"RubyGems","package":"actionpack","vulnerableRanges":["<6.1.7.4",">=7.0.0, <7.0.5.1"],"patched":["6.1.7.4","7.0.5.1"],"from":["GHSA-4g8v-vg43-wpgf"],"provenance":"source"}],"summary":{"text":"The redirect_to method in Rails' Action Pack component does not reject or properly encode characters that are illegal in HTTP header values, so the Location header it sets can contain invalid content. An attacker needs only local access with no privileges and no user interaction, and the effect arises when a downstream service that enforces RFC compliance on response headers strips the Location header from the response.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:38Z"},"euvd":{"id":"EUVD-2023-1687","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-22792","published":"2023-02-09","fixed":"7.0.4.1","kev":false,"link":{"from":"CVE-2023-22792","to":"CVE-2023-28362","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"6.1.7.1","toFixed":"6.1.7.4","daysApart":700},{"kind":"version-step","provenance":"source","package":"RubyGems:actionpack","fromFixed":"7.0.4.1","toFixed":"7.0.5.1","daysApart":700}]}},{"cve":"CVE-2023-22795","published":"2023-02-09","fixed":"7.0.4.1","kev":false},{"cve":"CVE-2023-22797","published":"2023-02-09","fixed":"7.0.4.1","kev":false},{"cve":"CVE-2023-28362","published":"2025-01-09","fixed":"7.0.5.1","kev":false},{"cve":"CVE-2024-26142","published":"2024-02-27","fixed":"7.1.3.1","kev":false},{"cve":"CVE-2024-26143","published":"2024-02-27","fixed":"7.1.3.1","kev":false},{"cve":"CVE-2024-28103","published":"2024-06-04","fixed":"7.2.0.beta2","kev":false}],"package":"RubyGems:actionpack"}}