{"id":"CVE-2024-54133","aliases":["CVE-2024-54133","GHSA-vfm5-rmrh-j26v","BIT-RAILS-2024-54133"],"related":[],"kind":"vulnerability","state":"published","title":"Possible Content Security Policy bypass in Action Dispatch","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"There is a possible Cross Site Scripting (XSS) vulnerability  in the `content_security_policy` helper in Action Pack.\n\nImpact\n------\nApplications 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.\n\nReleases\n--------\nThe fixed releases are available at the normal locations.\n\nWorkarounds\n-----------\nApplications can avoid setting CSP headers dynamically from untrusted input, or can validate/sanitize that input.\n\nCredits\n-------\nThanks to [ryotak](https://hackerone.com/ryotak) for the report!","format":"markdown","source":"ghsa"},{"lang":"es","text":"Action Pack es un framework para gestionar y responder a solicitudes web. Existe una posible vulnerabilidad de Cross Site Scripting (XSS) en el asistente `content_security_policy` a partir de la versión 5.2.0 de Action Pack y anteriores a las versiones 7.0.8.7, 7.1.5.1, 7.2.2.1 y 8.0.0.1. Las aplicaciones que establecen encabezados Content-Security-Policy (CSP) de forma dinámica a partir de una entrada de usuario no confiable pueden ser vulnerables a que las entradas cuidadosamente diseñadas puedan inyectar nuevas directivas en la CSP. Esto podría provocar una omisión de la CSP y su protección contra XSS y otros ataques. Las versiones 7.0.8.7, 7.1.5.1, 7.2.2.1 y 8.0.0.1 contienen una solución. Como workaround, las aplicaciones pueden evitar establecer encabezados CSP de forma dinámica a partir de una entrada no confiable, o pueden validar/sanear esa entrada.","source":"nvd"}],"published":"2024-12-10T22:42:27.000Z","modified":"2026-06-17T08:09:49.960Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2.3,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 5.2.0, < 7.0.8.7","status":"affected"},{"version":">= 7.1.0, < 7.1.5.1","status":"affected"},{"version":">= 7.2.0, < 7.2.2.1","status":"affected"},{"version":">= 8.0.0, < 8.0.0.1","status":"affected"}],"vendor":"rails","product":"rails","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"7.0.8.7"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.1.0","status":"affected","fixed":"7.1.5.1"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.2.0","status":"affected","fixed":"7.2.2.1"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.0.0","status":"affected","fixed":"8.0.0.1"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"5.2.0","status":"affected","fixed":"7.0.9"},{"type":"semver","introduced":"7.1.0","status":"affected","fixed":"7.1.4"},{"type":"semver","introduced":"7.2.0","status":"affected","fixed":"7.2.2-2-0"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.0.1"}],"ecosystem":"Bitnami","package":"rails","purl":"pkg:bitnami/rails","source":"bitnami"}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20250306-0010/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-54133","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2024-54133.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20250306-0010","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-12-11T16:05:59.623Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-54133","url":"https://www.cve.org/CVERecord?id=CVE-2024-54133","licence":"CVE Terms of Use","modified":"2025-03-07T00:10:45.315Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vfm5-rmrh-j26v","url":"https://github.com/advisories/GHSA-vfm5-rmrh-j26v","licence":"CC-BY-4.0","modified":"2025-03-07T03:51:16.783Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-54133","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-54133","licence":"Public domain","modified":"2026-06-17T08:09:49.960Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RAILS-2024-54133","url":"https://osv.dev/vulnerability/BIT-RAILS-2024-54133","licence":"Apache-2.0","modified":"2025-10-06T09:29:51.512Z"}],"updatedAt":"2026-11-25T22:58:49.939Z","epss":{"score":0.01002,"percentile":0.6385,"date":"2026-12-01T12:00:22.000Z"}}