CVE-2024-54133
Possible Content Security Policy bypass in Action Dispatch
Also known as BIT-rails-2024-54133, GHSA-vfm5-rmrh-j26v
Mitigation
- Upgrade actionpack to one of 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1 (or later in the same release line).
Who should check
- Projects that depend on RubyGems package actionpack (>= 5.2.0, < 7.0.8.7)
- Anyone running rails >= 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
Vulnerability facts
- Affected
- actionpack >= 5.2.0, < 7.0.8.7
- Fixed in
- 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 2.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: Low
- Availability impact on other systems: None
- EPSS
- 1.65% chance of exploitation in 30 days (percentile 77, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| RubyGems actionpack | >= 5.2.0, < 7.0.8.7 | 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1 | osv |
| rails | >= 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-54133. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-54133.md Affected: actionpack >= 5.2.0, < 7.0.8.7 Fixed in: 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1 Steps: 1. Search this machine and project for actionpack (RubyGems), rails: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49
- https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a
- https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542
- https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d
FAQ
Is CVE-2024-54133 being exploited?
There is no confirmed exploitation: CVE-2024-54133 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.65% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-54133?
Low: CVSS 2.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2024-54133?
actionpack >= 5.2.0, < 7.0.8.7.
Is there a fix for CVE-2024-54133?
Yes. Fixed in 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1. Upgrade actionpack to one of 7.0.8.7, 7.1.5.1, 7.2.2.1, 8.0.0.1 (or later in the same release line).
How do I check if I'm affected by CVE-2024-54133?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.