CVE-2026-33167
LOWVulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability presents moderate real-world risk despite being a development-mode issue. The CVSS vector cannot be fully assessed (N/A provided), but XSS vulnerabilities typically have low attack complexity and no privilege requirements. The attack vector is network-based, making it accessible from any request that triggers an exception with a crafted message. The primary mitigating factor is the requirement that config.consider_all_requests_local = true (development default), which limits exposure to development environments and accidental configurations. However, EPSS data is not provided, making probabilistic exploitation assessment unavailable. The existence of a published patch and advisory indicates vendor acknowledgment of real risk. Organizations must prioritize this based on whether development systems are network-accessible or if development settings exist in production. |
| Exploit ScenarioDerived | An attacker crafts an HTTP request designed to trigger an exception in a development Rails application, embedding a malicious payload in a parameter that becomes part of the exception message (e.g., via an invalid database query or parameter parsing error). When the Rails application renders the debug exceptions page, the attacker's injected HTML and JavaScript execute in the browser of any developer viewing the error page, potentially allowing session hijacking, credential theft, or further compromise of the development environment. Since the attack vector is network-based and requires only triggering a normal exception, exploitation is straightforward if the development application is exposed to an untrusted network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 23, 2026
A Cross-Site Scripting (XSS) vulnerability exists in Ruby on Rails' debug exceptions page due to improper HTML escaping of exception messages. This affects Rails applications running in development mode with detailed exception pages enabled (config.consider_all_requests_local = true, which is the default), allowing an attacker to inject arbitrary HTML and JavaScript that executes in the context of the debug page. While this primarily impacts development environments, applications with development configurations exposed to untrusted network access or those reusing development settings in production could face real exploitation risk.
RemediationAI
Upgrade Ruby on Rails to version 8.1.2.1 or later, which includes the fix for improper exception message escaping. This patch is available at normal vendor release channels (https://github.com/rails/rails/releases/tag/v8.1.2.1). For organizations unable to immediately patch, restrict network access to development systems running Rails applications, disable or set config.consider_all_requests_local = false on non-development systems, and implement network segmentation to ensure development environments are not directly exposed to untrusted user input. Additionally, configure web servers and load balancers to reject requests designed to trigger exceptions with suspicious payloads as a temporary compensating control.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in rubygems
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the actionpack gem (pkg:rubygems/actionpack), which is Rails' component responsible for request handling and exception rendering. The root cause is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), a standard XSS weakness. When Rails encounters an unhandled exception in development mode, it renders a detailed debug page displaying the exception message. The vulnerable code fails to properly HTML-escape exception messages before inserting them into the page, allowing injection of malicious script tags or event handlers. This occurs specifically in the exception rendering pipeline that generates the diagnostic error page shown to developers.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (https://github.com/rails/rails) · only source for this CVE.
CVSS VectorVendor: https://github.com/rails/rails
Lifecycle Timeline
3DescriptionCVE.org
Impact
The debug exceptions page does not properly escape exception messages. A carefully crafted exception message could inject arbitrary HTML and JavaScript into the page, leading to XSS. This affects applications with detailed exception pages enabled (config.consider_all_requests_local = true), which is the default in development.
Releases
The fixed releases are available at the normal locations.
Executive ViewAI
CVE-2026-33167 is a low-severity vulnerability involving cross-site scripting. The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. A patch is available and can be applied during standard maintenance windows.
Apply vendor patch during routine maintenance. Standard cross-site scripting mitigations apply if patching is delayed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB