# CVE-2026-33167: Rails has a possible XSS vulnerability in its Action Pack debug exceptions

- Priority: **Routine**
- Reason: Not severe (CVSS 1.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-03-23 · Modified: 2026-03-24
- Aliases: UBUNTU-CVE-2026-33167, CGA-4g2w-5rpm-9q6f, CGA-r495-839h-5pxm, GHSA-pgm4-439c-5jp6
- Record: https://cvemate.com/vulnerability/CVE-2026-33167 · JSON: https://cvemate.com/vulnerability/CVE-2026-33167/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.292%, percentile 23.376%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard ruby3.2-rails-8.1 (Chainguard): \< 8.1.3-r0
- wolfi ruby3.2-rails-8.1 (Wolfi): \< 8.1.3-r0
- ubuntu rails (Ubuntu): All versions (No fix recorded)
- RubyGems actionpack (RubyGems): ≥ 8.1.0, \< 8.1.2.1
- rails actionpack: ≥ 8.1.0, \< 8.1.2.1
- rubyonrails rails: ≥ 8.1.0, \< 8.1.2.1

## 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://ubuntu.com/security/CVE-2026-33167>
- <https://www.cve.org/CVERecord?id=CVE-2026-33167>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33167.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33167>
- <https://github.com/rails/rails>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2026-33167.yml>

---

Data as of 2026-12-05T06:48:45.442Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
