Possible Content Security Policy bypass in Action Dispatch
CVE-2024-54133Published 10 Dec 2024, 22:52 UTC
Real-world risk
0.8/ 10Low
Routine
If the vulnerable configuration applies to you: 1.8
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Action Pack is a framework for handling and responding to web requests. There is a possible Cross Site Scripting (XSS) vulnerability in the `content_security_policy` helper starting in version 5.2.0 of Action Pack and prior to versions 7.0.8.7, 7.1.5.1, 7.2.2.1, and 8.0.0.1. Applications which set Content-Security-Policy (CSP) headers dynamically from untrusted user input may be vulnerable to carefully crafted inputs being able to inject new directives into the CSP. This could lead to a bypass of the CSP and its protection against XSS and other attacks. Versions 7.0.8.7, 7.1.5.1, 7.2.2.1, and 8.0.0.1 contain a fix. As a workaround, applications can avoid setting CSP headers dynamically from untrusted input, or can validate/sanitize that input.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Ruby on RailsWidespread | >= 5.2.0, < 7.0.8.7; >= 7.1.0, < 7.1.5.1; >= 7.2.0, < 7.2.2.1; >= 8.0.0, < 8.0.0.1 | 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1 |
What to do
Update to a fixed version: 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 1.0% chance of exploitation in 30 days (percentile 64), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.315 × threat 0.850.803
- Rounded to one decimal between 0.1 and 100.8
Exploitation and evidence timeline
- 10 Dec 2024 Published
- 3 Dec 2026 Risk 0.8 (cvss fallback)
Weakness
CWE-79
References
- https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26vvendor-advisory
- https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49misc
- https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3amisc
- https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542misc
- https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1dmisc
- https://security.netapp.com/advisory/ntap-20250306-0010/
- CVE-2024-54133 on CVE.org