Skip to main content

CVE-2026-33167

LOW
Cross-site Scripting (XSS) (CWE-79)
2026-03-23 https://github.com/rails/rails
1.3
CVSS 4.0 · Vendor: https://github.com/rails/rails
View

Vulnerability 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

rubygems actionpack fix: 8.1.2.1

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

Vendor (https://github.com/rails/rails) PRIMARY 1.3 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Aug 12, 2026 - 16:52 NVD
1.3 (LOW)
Patch released
Mar 23, 2026 - 20:45 nvd
Patch available
CVE Published
Mar 23, 2026 - 20:45 nvd
LOW

DescriptionCVE.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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch during routine maintenance. Standard cross-site scripting mitigations apply if patching is delayed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

6
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +6
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

pkg:rubygems/actionpack

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy