Rails has a possible XSS vulnerability in its Action Pack debug exceptions
Published 23 Mar 2026 · Updated 10 Sept 2026
Is your project on an affected actionpack?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=8.1.0 <8.1.2.1
- Fixed in
- 8.1.2.1
bundle update --conservative actionpack # Gemfile: '>= 8.1.2.1'Details
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.
Is GHSA-pgm4-439c-5jp6 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected actionpack, and gives you the command that fixes it.
More advisories for actionpack
- MediumCVE-2026-126072Action Pack: Possible DoS vulnerability in Action Controller Live streaming · 12 Nov 2026
- MediumCVE-2026-126077Action Pack: Possible sensitive session information leak in Active Storage proxy mode · 12 Nov 2026
- HighCVE-2026-126081Action Pack: Possible Strong Parameters Bypass in Parameters#each_key · 12 Nov 2026
- MediumCVE-2026-126073Action Pack: Possible cache poisoning in Action Pack content negotiation · 10 Nov 2026
- LowCVE-2026-126067Action Pack: Missing SameSite attribute on session cookies from Action Pack session stores · 10 Nov 2026
- HighCVE-2026-126083Action Pack: Possible IP spoofing in Action Dispatch RemoteIp · 10 Nov 2026
References
- Linkgithub.com/rails/rails/security/advisories/GHSA-pgm4-439c-5jp6
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-33167
- Linkgithub.com/rails/rails/commit/6752711c8c31d79ba50d13af6a6698a3b85415e0
- Packagegithub.com/rails/rails
- Linkgithub.com/rails/rails/releases/tag/v8.1.2.1
- Linkgithub.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2026-33167.yml
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.