{"id":"CVE-2024-54133","state":"PUBLISHED","title":"Possible Content Security Policy bypass in Action Dispatch","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.","publishedAt":"2024-12-10T22:52:04.633Z","updatedAt":"2025-03-07T00:10:45.315Z","severity":{"score":2.3,"label":"Low","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["rails rails"],"affected":[{"vendor":"rails","product":"rails","versions":[{"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"}]}],"references":["https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v","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","https://security.netapp.com/advisory/ntap-20250306-0010/"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/54xxx/CVE-2024-54133.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-54133","state":"PUBLISHED","datePublished":"2024-12-10T22:52:04.633Z","dateUpdated":"2025-03-07T00:10:45.315Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-11-29T18:02:16.754Z"},"containers":{"cna":{"title":"Possible Content Security Policy bypass in Action Dispatch","descriptions":[{"lang":"en","value":"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":[{"vendor":"rails","product":"rails","versions":[{"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"}]}],"references":[{"url":"https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v","name":"https://github.com/rails/rails/security/advisories/GHSA-vfm5-rmrh-j26v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49","name":"https://github.com/rails/rails/commit/2e3f41e4538b9ca1044357f6644f037bbb7c6c49","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a","name":"https://github.com/rails/rails/commit/3da2479cfe1e00177114b17e496213c40d286b3a","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542","name":"https://github.com/rails/rails/commit/5558e72f22fc69c1c407b31ac5fb3b4ce087b542","tags":["x_refsource_MISC"]},{"url":"https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d","name":"https://github.com/rails/rails/commit/cb16a3bb515b5d769f73926d9757270ace691f1d","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","subAvailabilityImpact":"NONE","baseScore":2.3,"baseSeverity":"LOW","vectorString":"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-12-10T22:52:04.633Z"},"source":{"advisory":"GHSA-vfm5-rmrh-j26v","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-12-11T16:05:59.623098Z","id":"CVE-2024-54133","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-12-11T16:06:09.364Z"}},{"title":"CVE Program Container","references":[{"url":"https://security.netapp.com/advisory/ntap-20250306-0010/"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-03-07T00:10:45.315Z"}}]}}}