# CVE-2022-22577: Cross-site Scripting Vulnerability in Action Pack

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- 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): 1.83%, higher than 79% of CVEs (2026-12-01)
- Published: 2022-04-27T22:28:59.000Z
- Modified: 2026-06-17T04:28:37.450Z
- Also known as: GHSA-mm33-5vfq-3mm3
- Weaknesses: CWE-79
- Assigned by: hackerone

## Description

An XSS Vulnerability in Action Pack >= 5.2.0 and < 5.2.0 that could allow an attacker to bypass CSP for non HTML like responses.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1
- actionpack (RubyGems): from 5.2.0 before 5.2.7.1; from 6.0.0 before 6.0.4.8; from 6.1.0 before 6.1.5.1; from 7.0.0 before 7.0.2.4
- rubyonrails actionpack: from 5.2.0 before 5.2.7.1; from 6.0.0 before 6.0.4.8; from 6.1.0 before 6.1.5.1; from 7.0.0 before 7.0.2.4
- debian debian_linux: 10.0

## Every score

- GitHub: 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`
- 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://discuss.rubyonrails.org/t/cve-2022-22577-possible-xss-vulnerability-in-action-pack/80533> (patch, vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html> (mailing-list, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20221118-0002/> (third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5372> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-22577> (advisory)
- <https://github.com/rails/rails/pull/44635> (web)
- <https://github.com/rails/rails/commit/2b820a2a69fa50cffa74b4aedc57bf92ed6910ec> (web)
- <https://github.com/rails/rails/commit/5299b57d596ea274f77f5ffee2b79c6ee0255508> (web)
- <https://github.com/rails/rails/commit/8198d7c4accad0b6ba956b9d59528534a289866b> (web)
- <https://github.com/rails/rails/commit/d2253115ac2b30f5f7210670af906cebf79cf809> (web)
- <https://github.com/rails/rails> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-22577.yml> (web)
- <https://groups.google.com/g/ruby-security-ann/c/NuFRKaN5swI> (web)
- <https://rubyonrails.org/2022/4/26/Rails-7-0-2-4-6-1-5-1-6-0-4-8-and-5-2-7-1-have-been-released> (web)
- <https://security.netapp.com/advisory/ntap-20221118-0002> (web)

## Sources

- CVE List: [CVE-2022-22577](https://www.cve.org/CVERecord?id=CVE-2022-22577), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-mm33-5vfq-3mm3](https://github.com/advisories/GHSA-mm33-5vfq-3mm3), CC-BY-4.0, modified 2024-02-18
- NVD: [CVE-2022-22577](https://nvd.nist.gov/vuln/detail/CVE-2022-22577), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-22577 · Whole record: https://cve.day/CVE-2022-22577.json · Rebuilt by cve.day 2026-11-25T22:58:11.960Z
