Advisory

GHSA-4g8v-vg43-wpgf

Also known as: CVE-2023-28362

Summary

Actionpack has possible cross-site scripting vulnerability via User Supplied Values to redirect_to

Details

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

Impact

This introduces the potential for a Cross-site-scripting (XSS) payload to be delivered on the now static redirection page. Note that this both requires user interaction and for a Rails app to be configured to allow redirects to external hosts (defaults to false in Rails >= 7.0.x).

Releases

The FIXED releases are available at the normal locations.

Workarounds

Avoid providing user supplied URLs with arbitrary schemes to the redirect_to method.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-06-29 15:03 UTC
Modified
2025-05-05 17:49 UTC

Affected packages and fixes

actionpack

RubyGems · All systems

Affected

  • introduced 0, fixed 6.1.7.4 (ecosystem)

Fixed versions

6.1.7.4

Fix

The export has no generic command for this ecosystem.

actionpack

RubyGems · All systems

Affected

  • introduced 7.0.0, fixed 7.0.5.1 (ecosystem)

Fixed versions

7.0.5.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences