Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. actionpack
  4. ›
  5. CVE-2023-28362

CVE-2023-28362: Actionpack has possible cross-site scripting vulnerability via User Supplied Values to redirect_to

June 29, 2023 (updated May 5, 2025)

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. This vulnerability has been assigned the CVE identifier CVE-2023-28362.

Versions Affected: All. Not affected: None Fixed Versions: 7.0.5.1, 6.1.7.4

References

  • discuss.rubyonrails.org/t/cve-2023-28362-possible-xss-via-user-supplied-values-to-redirect-to/83132
  • github.com/advisories/GHSA-4g8v-vg43-wpgf
  • github.com/rails/rails
  • github.com/rails/rails/commit/1c3f93d1e90a3475f9ae2377ead25ccf11f71441
  • github.com/rails/rails/commit/69e37c84e3f77d75566424c7d0015172d6a6fac5
  • github.com/rails/rails/commit/c9ab9b32bcdcfd8bcd55907f6c7b20b4e004cc23
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2023-28362.yml
  • nvd.nist.gov/vuln/detail/CVE-2023-28362
  • security.netapp.com/advisory/ntap-20250502-0009

Code Behaviors & Features

Detect and mitigate CVE-2023-28362 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.1.7.4, all versions starting from 7.0.0 before 7.0.5.1

Fixed versions

  • 6.1.7.4
  • 7.0.5.1

Solution

Upgrade to versions 6.1.7.4, 7.0.5.1 or above.

Impact 4 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-116: Improper Encoding or Escaping of Output

Source file

gem/actionpack/CVE-2023-28362.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.