Loading...
Skip to main content

CVE-2024-54133

LOW

Possible Content Security Policy bypass in Action Dispatch

Published December 10, 2024Updated March 7, 2025Source: osv

Summary

There is a possible Cross Site Scripting (XSS) vulnerability in the `content_security_policy` helper in Action Pack. Impact ------ 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. Releases -------- The fixed releases are available at the normal locations. Workarounds ----------- Applications can avoid setting CSP headers dynamically from untrusted input, or can validate/sanitize that input. Credits ------- Thanks to [ryotak](https://hackerone.com/ryotak) for the report!

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update actionpack to 8.0.0.1 or later
gem install actionpack -v 8.0.0.1
Bundler
Update actionpack to 7.1.5.1 or later
gem install actionpack -v 7.1.5.1
Bundler
Update actionpack to 7.2.2.1 or later
gem install actionpack -v 7.2.2.1
Bundler
Update actionpack to 7.0.8.7 or later
gem install actionpack -v 7.0.8.7

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

PackageEcosystemAffectedFixed In
actionpack
rubygems
8.0.08.0.0.1
actionpack
rubygems
7.1.0, 7.1.1, 7.1.2, 7.1.3 (+8 more)7.1.5.1
actionpack
rubygems
7.2.0, 7.2.1, 7.2.1.1, 7.2.1.2 (+1 more)7.2.2.1
actionpack
rubygems
5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+120 more)7.0.8.7

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
Confidentiality
Integrity
Availability

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Frequently Asked Questions

What is CVE-2024-54133?
Possible Content Security Policy bypass in Action Dispatch This vulnerability has been assigned a severity rating of LOW (CVSS score: 5.7/10).
How do I check if my project is affected by CVE-2024-54133?
CVE-2024-54133 affects actionpack. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-54133 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.7

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-vfm5-rmrh-j26v
BIT-rails-2024-54133

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies