Rails has a possible XSS vulnerability in its Action Pack debug exceptions
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
Action Pack is a Rubygem for building web applications on the Rails framework. In versions on the 8.1 branch prior to 8.1.2.1, 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. Version 8.1.2.1 contains a patch.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | actionpack | 8.1.0 to before 8.1.2.1 | 8.1.2.1 | Patch available | CNA |
| — | actionpack (RubyGems) | 8.1.0 to before 8.1.2.1 | 8.1.2.1 | Patch available | GHSA-pgm4-439c-5jp6 |
- actionpack VendorRails Affected 8.1.0 to before 8.1.2.1 Fixed in 8.1.2.1 Patch available CNA
- actionpack (RubyGems) Vendor— Affected 8.1.0 to before 8.1.2.1 Fixed in 8.1.2.1 Patch available GHSA-pgm4-439c-5jp6
Remediation
- Fix · CNA actionpack (rails) Fixed in 8.1.2.1
- Fix · GHSA-pgm4-439c-5jp6 actionpack (RubyGems) Fixed in 8.1.2.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-33167
- 2026-10-03 Alias added: GHSA-pgm4-439c-5jp6
References
Advisory 2
More Rails vulnerabilities
- TI-2014-00124 Directory traversal vulnerability in actionpack/lib/abstract_controller/base.rb in the… KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 Path traversal in Rails https://github.com/rails/rails KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal vulnerability in Action View in Ruby on Rails before 3.2.22.1, 4.0.x… KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2020-06581 Code injection in https://github.com/rails/rails CVSS 3.1HIGH 8.8
- TI-2013-00091 active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before… CVSS 2.0HIGH 7.5
Sources
- CVE-2026-33167 · CVE Program
- CVE-2026-33167 · NVD
- FIRST EPSS
- GHSA-pgm4-439c-5jp6 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-33167 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences