Vulnerability · Published May 26, 2022 · Assigned by hackerone
CVE-2022-22577
Medium 6.1
In plain English
A medium-severity cross-site scripting in https://github.com/rails/rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.8%top 21.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.6.1+dfsg-1 | DEBIAN-CVE-2022-22577 |
| Debian:13 | rails | 2:6.1.6.1+dfsg-1 | DEBIAN-CVE-2022-22577 |
| Debian:14 | rails | 2:6.1.6.1+dfsg-1 | DEBIAN-CVE-2022-22577 |
| RubyGems | actionpack | 7.0.2.4 | GHSA-mm33-5vfq-3mm3 |
| RubyGems | actionpack | 5.2.7.1 | GHSA-mm33-5vfq-3mm3 |
| RubyGems | actionpack | 6.0.4.8 | GHSA-mm33-5vfq-3mm3 |
| RubyGems | actionpack | 6.1.5.1 | GHSA-mm33-5vfq-3mm3 |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2022-22577 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2022-22577 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2022-22577 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2022-22577 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1 |
Weakness: CWE-79