CVE-2024-54133: rails Cross-site Scripting
Vulnerability summary
CVE-2024-54133 is a low (CVSS 2.3) Cross-site Scripting vulnerability in rails. EPSS estimates a 1.00% chance of exploitation in the next 30 days, higher than 62.3% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 3 · Related 1Timeline
- 10-12-2024PublishedVulnerability first disclosed.
- 07-03-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- OSV · DebianEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · RubygemsEcosystem advisory · calculated2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
- NVDNIST2.3LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
1.00%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
0.00 pp
From 1.00% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Opensuse13 products
- rubygem-actioncable-8.0&distro=openSUSE Tumbleweed< 8.0.1-1.1 | < 8.0.3-1.3
- rubygem-actionmailbox-8.0&distro=openSUSE Tumbleweed< 8.0.1-1.1 | < 8.0.3-1.3
- rubygem-actionmailer-8.0&distro=openSUSE Tumbleweed< 8.0.1-1.1 | < 8.0.3-1.3
- rubygem-actionpack-8.0&distro=openSUSE Tumbleweed< 8.0.1-1.1 | < 8.0.3-1.3
- rubygem-actiontext-8.0&distro=openSUSE Tumbleweed< 8.0.1-1.1 | < 8.0.3-1.3
Debian1 product
- rails< 2:6.1.7.10+dfsg-1~deb12u1 | < 2:7.2.2.1+dfsg-1
Rails1 product
- 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
RubyGems1 product
- actionpack≥ 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
Ubuntu1 product
- railsAll versions (No fix recorded)
5 vendors · 17 products
References
23 links- lists.opensuse.org/archives/…Advisory
Show all 23 references
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- github.com/rails/railsPACKAGE