The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-54133

CVE-2024-54133: Action Pack CSP XSS Vulnerability

CVE-2024-54133 is a Cross Site Scripting flaw in Action Pack's content_security_policy helper that allows attackers to inject directives and bypass CSP protections. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-54133 Overview

CVE-2024-54133 is a Cross-Site Scripting (XSS) vulnerability in the content_security_policy helper within Ruby on Rails Action Pack framework. Action Pack is a core framework component for handling and responding to web requests in Rails applications. This vulnerability allows attackers to inject malicious directives into Content-Security-Policy (CSP) headers when applications dynamically construct CSP headers from untrusted user input, potentially bypassing critical security protections.

Critical Impact

Applications setting Content-Security-Policy headers dynamically from untrusted user input may have their CSP protections bypassed, enabling XSS attacks and other client-side exploits.

Affected Products

  • Action Pack versions 5.2.0 through 7.0.8.6
  • Action Pack versions 7.1.0 through 7.1.5.0
  • Action Pack versions 7.2.0 through 7.2.2.0
  • Action Pack versions 8.0.0 (prior to 8.0.0.1)

Discovery Timeline

  • 2024-12-10 - CVE-2024-54133 published to NVD
  • 2025-03-07 - Last updated in NVD database

Technical Details for CVE-2024-54133

Vulnerability Analysis

This vulnerability exists in the content_security_policy helper function within Action Pack, which is used to dynamically set Content-Security-Policy HTTP headers. When developers construct CSP directives using untrusted user input without proper validation, attackers can craft malicious input that injects additional CSP directives or modifies existing ones.

Content-Security-Policy headers are a critical browser security mechanism designed to prevent XSS attacks by restricting which resources can be loaded and executed. By injecting arbitrary directives into the CSP header, an attacker could potentially add permissive rules like script-src 'unsafe-inline' or script-src attacker.com, effectively disabling the CSP protections that were intended to prevent script injection attacks.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), as the core issue stems from insufficient sanitization of user-controlled input that ends up in security-sensitive HTTP headers.

Root Cause

The root cause of this vulnerability is insufficient input validation and sanitization in the content_security_policy helper when processing user-supplied values. The helper function did not properly escape or validate inputs that could contain CSP directive separators (such as semicolons) or other control characters that could be interpreted as new directives by the browser's CSP parser.

When untrusted input is passed directly to the CSP helper without sanitization, attackers can inject delimiter characters that the browser interprets as directive boundaries, allowing them to append their own CSP rules to the policy.

Attack Vector

The attack vector is network-based, requiring user interaction. An attacker must identify an application endpoint where user input influences the construction of CSP headers. The attacker would then craft a malicious payload containing CSP directive separators and injected directives.

For example, if an application dynamically includes a user-provided value in a CSP directive, an attacker could supply input like value; script-src 'unsafe-inline' to inject a permissive script source directive. Once the victim's browser processes the manipulated CSP header, the injected directive could weaken security controls, enabling subsequent XSS attacks.

The vulnerability requires specific application configurations where user input flows into CSP header construction, which limits the attack surface to applications using this particular pattern.

Detection Methods for CVE-2024-54133

Indicators of Compromise

  • Unusual or unexpected CSP directive values appearing in HTTP response headers
  • CSP headers containing multiple semicolon-separated directives where only one was expected
  • Application logs showing user input containing CSP directive keywords like script-src, unsafe-inline, or unsafe-eval

Detection Strategies

  • Review application code for usage of the content_security_policy helper with dynamic or user-controlled values
  • Implement Web Application Firewall (WAF) rules to detect CSP directive injection patterns in request parameters
  • Monitor HTTP response headers for anomalous CSP configurations that differ from expected baseline policies
  • Audit Rails controller and view code for patterns where request parameters are passed to CSP helper methods

Monitoring Recommendations

  • Enable detailed logging of CSP header values in production environments
  • Configure Content-Security-Policy-Report-Only headers with report-uri to capture policy violations
  • Set up alerts for CSP violation reports indicating potential exploitation attempts
  • Monitor for unusual patterns in user input fields that may indicate injection attempts

How to Mitigate CVE-2024-54133

Immediate Actions Required

  • Upgrade Action Pack to patched versions: 7.0.8.7, 7.1.5.1, 7.2.2.1, or 8.0.0.1
  • Audit application code for any usage of content_security_policy helper with untrusted input
  • Implement input validation for any user-supplied values that influence CSP construction
  • Review and test CSP configurations to ensure expected policies are being applied

Patch Information

Security patches have been released by the Rails team to address this vulnerability. The following versions contain the fix:

  • Action Pack 7.0.8.7 - View commit
  • Action Pack 7.1.5.1 - View commit
  • Action Pack 7.2.2.1 - View commit
  • Action Pack 8.0.0.1 - View commit

For additional details, refer to the GitHub Security Advisory and NetApp Security Advisory.

Workarounds

  • Avoid setting CSP headers dynamically from untrusted user input entirely
  • Implement strict allowlisting for any values that must be included in CSP headers
  • Sanitize and validate all user input before using it in CSP construction, removing semicolons and other CSP delimiter characters
  • Use static CSP configurations where possible instead of dynamic header generation
bash
# Example: Update Rails Action Pack using Bundler
bundle update actionpack

# Verify the installed version contains the fix
bundle show actionpack
# Expected output should show version 7.0.8.7, 7.1.5.1, 7.2.2.1, or 8.0.0.1+

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechAction Pack

  • SeverityLOW

  • CVSS Score2.3

  • EPSS Probability0.12%

  • Known ExploitedNo
  • CVSS 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/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory

  • NetApp Security Advisory
  • Related CVEs
  • CVE-2026-33167: Rails Action Pack XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English