CVE-2022-22577
MEDIUM 6.1CVSS 3.1Cross-site Scripting Vulnerability in Action Pack
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.
- Published
- 26 May 2022
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-mm33-5vfq-3mm3
- Sources
- NVDJSONOSV GHSA-mm33-5vfq-3mm3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 5.2.0, < 5.2.7.1 | 5.2.7.1 |
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 6.0.0, < 6.0.4.8 | 6.0.4.8 |
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 6.1.0, < 6.1.5.1 | 6.1.5.1 |
| NVD | rubyonrails | actionpackcpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:* |
>= 7.0.0, < 7.0.2.4 | 7.0.2.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | RubyGems | actionpack | >= 5.2.0, < 5.2.7.1 | 5.2.7.1 |
| OSV | RubyGems | actionpack | >= 6.0.0, < 6.0.4.8 | 6.0.4.8 |
| OSV | RubyGems | actionpack | >= 6.1.0, < 6.1.5.1 | 6.1.5.1 |
| OSV | RubyGems | actionpack | >= 7.0.0, < 7.0.2.4 | 7.0.2.4 |
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, WEB
- https://www.debian.org/security/2023/dsa-5372 · 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
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 26 May 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Apr 2022)