CVE-2026-33167: Rails has a possible XSS vulnerability in its Action Pack debug exceptions
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.considerallrequestslocal = true), which is the default in development. Releases The fixed releases are available at the normal locations.
Published Mar 23, 2026 · Updated May 13, 2026
Affected packages
actionpack
- Ecosystem
- RubyGems
- Affected
- >= 8.1.0, < 8.1.2.1
- Fixed in
- 8.1.2.1
- Check
bundle info actionpack
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://github.com/rails/rails/security/advisories/GHSA-pgm4-439c-5jp6
- https://github.com/rails/rails/commit/6752711c8c31d79ba50d13af6a6698a3b85415e0
- https://github.com/rails/rails/releases/tag/v8.1.2.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-33167
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2026-33167.yml
- https://github.com/advisories/GHSA-pgm4-439c-5jp6
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-126072
Action Pack: Possible DoS vulnerability in Action Controller Live streaming
medium5.9Nov 12, 2026CVE-2026-126077
Action Pack: Possible sensitive session information leak in Active Storage proxy mode
medium6.8Nov 12, 2026CVE-2026-126081
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
high7.5Nov 12, 2026CVE-2026-126067
Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores
low3.1Nov 10, 2026CVE-2026-126073
Action Pack: Possible cache poisoning in Action Pack content negotiation
medium4.8Nov 10, 2026CVE-2026-126076
Action Pack: Possible restoration of destroyed sessions in Action Dispatch CacheStore
medium4.2Nov 10, 2026
