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

- Severity: Low 1.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-03-23T20:45:15.000Z
- Modified: 2026-09-10T03:50:40.310Z
- Also known as: GHSA-pgm4-439c-5jp6
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rails actionpack: >= 8.1.0, < 8.1.2.1
- actionpack (RubyGems): from 8.1.0 before 8.1.2.1
- rubyonrails rails: from 8.1.0 before 8.1.2.1

## Every score

- GitHub_M: CVSS:4.0 1.3 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rails/rails/security/advisories/GHSA-pgm4-439c-5jp6> (vendor-advisory, web)
- <https://github.com/rails/rails/commit/6752711c8c31d79ba50d13af6a6698a3b85415e0> (patch, web)
- <https://github.com/rails/rails/releases/tag/v8.1.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33167> (advisory)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2026-33167.yml> (web)

## Sources

- CVE List: [CVE-2026-33167](https://www.cve.org/CVERecord?id=CVE-2026-33167), CVE Terms of Use, modified 2026-03-24
- GitHub Advisory Database: [GHSA-pgm4-439c-5jp6](https://github.com/advisories/GHSA-pgm4-439c-5jp6), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-33167](https://nvd.nist.gov/vuln/detail/CVE-2026-33167), Public domain, modified 2026-08-12

---

Page: https://cve.day/CVE-2026-33167 · Whole record: https://cve.day/CVE-2026-33167.json · Rebuilt by cve.day 2026-11-25T22:59:16.506Z
