CVE-2026-33167: Rails has a possible XSS vulnerability in its Action Pack debug exceptions
CVE-2026-33167 · Severity: medium · CVSS 4 · Published 2026-03-23
### 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.
### Credit
This issue was responsibly reported by Hackerone researcher [fbettag](https://hackerone.com/fbettag).
Yes. actionpack (RubyGems): upgrade to 8.1.2.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2026-33167?
Check whether you run actionpack (RubyGems) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
actionpack (RubyGems): upgrade to 8.1.2.1 or later