Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-33167

CVE-2026-33167: Rails Action Pack XSS Vulnerability

CVE-2026-33167 is a cross-site scripting flaw in Rails Action Pack that allows injection of malicious HTML and JavaScript via crafted exception messages. This article covers the technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-33167 Overview

CVE-2026-33167 is a Cross-Site Scripting (XSS) vulnerability in Action Pack, a Rubygem for building web applications on the Ruby on Rails framework. The vulnerability exists in the debug exceptions page, which does not properly escape exception messages. A carefully crafted exception message could inject arbitrary HTML and JavaScript into the page, enabling XSS attacks against developers and administrators viewing exception details.

This vulnerability affects applications running Rails 8.1 branch versions prior to 8.1.2.1 with detailed exception pages enabled (config.consider_all_requests_local = true), which is the default configuration in development environments.

Critical Impact

Attackers can inject malicious JavaScript through crafted exception messages, potentially stealing session cookies, credentials, or performing actions on behalf of authenticated developers viewing debug pages.

Affected Products

  • Ruby on Rails Action Pack 8.1.x versions prior to 8.1.2.1
  • Rails applications with config.consider_all_requests_local = true (default in development)
  • Development and staging environments exposing debug exception pages

Discovery Timeline

  • 2026-03-23 - CVE-2026-33167 published to NVD
  • 2026-03-24 - Last updated in NVD database

Technical Details for CVE-2026-33167

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting (XSS). The root issue lies in the debug exceptions page handler within Action Pack, which renders exception messages without proper HTML entity encoding.

When an application encounters an unhandled exception, Rails displays a detailed debug page in development mode showing the exception class, message, and stack trace. The exception message rendering path failed to sanitize user-controllable content, allowing HTML and JavaScript code embedded in exception messages to be interpreted by the browser rather than displayed as plain text.

The attack requires user interaction—a developer or administrator must view the debug page containing the malicious exception. While this limits the attack surface primarily to development environments, staging servers and misconfigured production environments with debug pages enabled could also be affected.

Root Cause

The vulnerability stems from insufficient output encoding in the exception message rendering template. When displaying exception details on the debug page, the exception message was interpolated directly into the HTML response without applying proper escaping functions like html_escape or Rails' built-in sanitization helpers. This allowed raw HTML tags and JavaScript event handlers embedded in exception messages to execute in the browser context.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker would need to trigger an exception containing a malicious payload—for example, by submitting specially crafted input that causes an application error with an attacker-controlled message. When a developer views the resulting debug page, the injected JavaScript executes in their browser.

Attack scenarios include:

  • Submitting malformed data to input fields that cause validation exceptions with reflected content
  • Exploiting application code paths that include user input in exception messages
  • Social engineering developers to trigger specific errors in controlled environments

The vulnerability primarily affects development environments where debug pages are enabled by default. For technical implementation details and the specific code changes, refer to the GitHub commit and security advisory.

Detection Methods for CVE-2026-33167

Indicators of Compromise

  • Unusual exception messages containing HTML tags such as <script>, <img>, or event handlers like onerror
  • Web server logs showing requests designed to trigger specific exceptions with embedded payloads
  • Reports from developers experiencing unexpected browser behavior when viewing debug pages
  • Outbound network connections from developer workstations to unknown destinations after viewing exception pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers on development servers to detect and block inline script execution
  • Monitor application logs for exception messages containing suspicious patterns like <script, javascript:, or HTML event handlers
  • Deploy browser-based security tools on developer machines that alert on potential XSS execution
  • Audit application code for exception handling that incorporates user-supplied input into error messages

Monitoring Recommendations

  • Enable CSP reporting mode on development and staging environments to capture policy violations
  • Review Rails application logs for anomalous exception patterns that could indicate exploitation attempts
  • Implement security information and event management (SIEM) rules to alert on HTML/JavaScript patterns in application error logs
  • Conduct periodic reviews of exception handling code to identify paths where user input flows into exception messages

How to Mitigate CVE-2026-33167

Immediate Actions Required

  • Upgrade Action Pack to version 8.1.2.1 or later immediately
  • Verify that production environments have config.consider_all_requests_local = false configured
  • Review and restrict access to development and staging servers that may expose debug pages
  • Implement Content Security Policy headers as an additional defense layer against XSS

Patch Information

The Rails team has released version 8.1.2.1 which contains the security patch for this vulnerability. The fix properly escapes exception messages before rendering them on the debug page, preventing HTML and JavaScript injection.

Update your Gemfile to specify the patched version:

ruby
gem 'actionpack', '>= 8.1.2.1'

For additional details, see the GitHub Release v8.1.2.1 and the GitHub Security Advisory GHSA-pgm4-439c-5jp6.

Workarounds

  • Disable detailed exception pages by setting config.consider_all_requests_local = false in all environments until patching is possible
  • Restrict network access to development servers using firewall rules or VPN requirements
  • Deploy a reverse proxy in front of development servers that strips or sanitizes debug page responses
  • Implement a custom exceptions application that applies output encoding to all exception data before rendering
bash
# Configuration example for disabling debug pages in Rails
# In config/environments/development.rb or config/environments/staging.rb
# Set the following to disable detailed exception pages:
# config.consider_all_requests_local = false

# Alternatively, restrict access via web server configuration
# For Nginx, add IP restrictions to development servers:
# location / {
#   allow 10.0.0.0/8;
#   allow 192.168.0.0/16;
#   deny all;
# }

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 Score1.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/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 Changes

  • GitHub Release v8.1.2.1

  • GitHub Security Advisory GHSA-pgm4-439c-5jp6
  • Related CVEs
  • CVE-2024-54133: Action Pack CSP 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