{"answers":{"affected":"9 open source packages ship an affected version, including rails and actionpack.","exploited":"There is no known exploitation of CVE-2024-54133 in the wild and no public exploit code.","fix":"Upgrade rails to a fixed version for your release line: 7.0.9, 7.1.4, 7.2.2-2-0 or 8.0.1.","what":"CVE-2024-54133 is a low-severity cross-site scripting vulnerability in rails, published on 10 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-54133 and fix it if it is affected.\n\nWhat it is: CVE-2024-54133 is a low-severity cross-site scripting vulnerability in rails, published on 10 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-54133 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rails (Bitnami): affected from 5.2.0; fixed in 7.0.9, 7.1.4, 7.2.2-2-0, 8.0.1\n- actionpack (RubyGems): affected from 5.2.0; fixed in 7.0.8.7\n- actionpack (RubyGems): affected from 5.2.0; fixed in 7.0.8.7\n- actionpack (RubyGems): affected from 7.1.0; fixed in 7.1.5.1\n- actionpack (RubyGems): affected from 7.1.0; fixed in 7.1.5.1\n- actionpack (RubyGems): affected from 7.2.0; fixed in 7.2.2.1\n- actionpack (RubyGems): affected from 7.2.0; fixed in 7.2.2.1\n- actionpack (RubyGems): affected from 8.0.0; fixed in 8.0.0.1\n- actionpack (RubyGems): affected from 8.0.0; fixed in 8.0.0.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-54133/ (Markdown: https://insights.sbomify.com/CVE-2024-54133/index.md)","id":"CVE-2024-54133","markdown":"https://insights.sbomify.com/CVE-2024-54133/index.md","name":"CVE-2024-54133","record":{"aliases":["BIT-rails-2024-54133","DEBIAN-CVE-2024-54133","GHSA-vfm5-rmrh-j26v","UBUNTU-CVE-2024-54133","openSUSE-SU-2025:14668-1","openSUSE-SU-2025:14669-1","openSUSE-SU-2025:14670-1","openSUSE-SU-2025:14671-1","openSUSE-SU-2025:14672-1","openSUSE-SU-2025:14673-1","openSUSE-SU-2025:14674-1","openSUSE-SU-2025:14675-1","openSUSE-SU-2025:14676-1","openSUSE-SU-2025:14677-1","openSUSE-SU-2025:14678-1","openSUSE-SU-2025:14679-1","openSUSE-SU-2025:14680-1","openSUSE-SU-2026:10335-1","openSUSE-SU-2026:10336-1","openSUSE-SU-2026:10337-1","openSUSE-SU-2026:10338-1","openSUSE-SU-2026:10339-1","openSUSE-SU-2026:10340-1","openSUSE-SU-2026:10341-1","openSUSE-SU-2026:10342-1","openSUSE-SU-2026:10344-1","openSUSE-SU-2026:10345-1","openSUSE-SU-2026:10360-1","openSUSE-SU-2026:10362-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Attackers can bypass Content Security Policy protections in Rails applications if CSP headers are dynamically set from untrusted input, potentially enabling XSS attacks.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":2.3,"severity":"low","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["Bitnami","RubyGems","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Possible Content Security Policy bypass in Action Dispatch","id":"CVE-2024-54133","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":34,"n_references":5,"next":{"headline":"@solana/web3.js modified package published to npm, containing malware that exfiltrates private key material","id":"CVE-2024-54134"},"packages":[{"ecosystem":"Bitnami","fixed":["7.0.9","7.1.4","7.2.2-2-0","8.0.1"],"introduced":["5.2.0","7.1.0","7.2.0","8.0.0"],"last_affected":[],"package":"rails","purl":"pkg:bitnami/rails","source":"BIT-rails-2024-54133"},{"ecosystem":"RubyGems","fixed":["7.0.8.7"],"introduced":["5.2.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["7.0.8.7"],"introduced":["5.2.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["7.1.5.1"],"introduced":["7.1.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["7.1.5.1"],"introduced":["7.1.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["7.2.2.1"],"introduced":["7.2.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["7.2.2.1"],"introduced":["7.2.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["8.0.0.1"],"introduced":["8.0.0"],"last_affected":[],"package":"actionpack","purl":null,"source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"RubyGems","fixed":["8.0.0.1"],"introduced":["8.0.0"],"last_affected":[],"package":"actionpack","purl":"pkg:gem/actionpack","source":"GHSA-vfm5-rmrh-j26v"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actioncable-8.0","purl":"pkg:rpm/opensuse/rubygem-actioncable-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14668-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actioncable-8.0","purl":"pkg:rpm/opensuse/rubygem-actioncable-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10335-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailbox-8.0","purl":"pkg:rpm/opensuse/rubygem-actionmailbox-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14669-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailbox-8.0","purl":"pkg:rpm/opensuse/rubygem-actionmailbox-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10336-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-8.0","purl":"pkg:rpm/opensuse/rubygem-actionmailer-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14670-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionmailer-8.0","purl":"pkg:rpm/opensuse/rubygem-actionmailer-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10337-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionpack-8.0","purl":"pkg:rpm/opensuse/rubygem-actionpack-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14671-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionpack-8.0","purl":"pkg:rpm/opensuse/rubygem-actionpack-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10338-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actiontext-8.0","purl":"pkg:rpm/opensuse/rubygem-actiontext-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14672-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actiontext-8.0","purl":"pkg:rpm/opensuse/rubygem-actiontext-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10339-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionview-8.0","purl":"pkg:rpm/opensuse/rubygem-actionview-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14673-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-actionview-8.0","purl":"pkg:rpm/opensuse/rubygem-actionview-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10340-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activejob-8.0","purl":"pkg:rpm/opensuse/rubygem-activejob-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14674-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activejob-8.0","purl":"pkg:rpm/opensuse/rubygem-activejob-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10341-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activemodel-8.0","purl":"pkg:rpm/opensuse/rubygem-activemodel-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14675-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activemodel-8.0","purl":"pkg:rpm/opensuse/rubygem-activemodel-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10342-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-8.0","purl":"pkg:rpm/opensuse/rubygem-activerecord-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14676-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activestorage-8.0","purl":"pkg:rpm/opensuse/rubygem-activestorage-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14677-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activestorage-8.0","purl":"pkg:rpm/opensuse/rubygem-activestorage-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10344-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activesupport-8.0","purl":"pkg:rpm/opensuse/rubygem-activesupport-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14678-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activesupport-8.0","purl":"pkg:rpm/opensuse/rubygem-activesupport-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10345-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-rails-8.0","purl":"pkg:rpm/opensuse/rubygem-rails-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14679-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-rails-8.0","purl":"pkg:rpm/opensuse/rubygem-rails-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10360-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.1-1.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-railties-8.0","purl":"pkg:rpm/opensuse/rubygem-railties-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14680-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["8.0.3-1.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-railties-8.0","purl":"pkg:rpm/opensuse/rubygem-railties-8.0\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10362-1"}],"prev":{"headline":"GitHub CLI allows downloading malicious GitHub Actions workflow artifact to result in path traversal vulnerability","id":"CVE-2024-54132"},"products":["rails"],"published":"2024-12-10","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-07","vendors":["rails"]},"summary":"Attackers can bypass Content Security Policy protections in Rails applications if CSP headers are dynamically set from untrusted input, potentially enabling XSS attacks.","url":"https://insights.sbomify.com/CVE-2024-54133/"}