{"id":"CVE-2022-22577","aliases":["CVE-2022-22577","GHSA-mm33-5vfq-3mm3"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-site Scripting Vulnerability in Action Pack","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"There is a possible XSS vulnerability in Rails / Action Pack. This vulnerability has been\nassigned the CVE identifier CVE-2022-22577.\n\nVersions Affected:  >= 5.2.0\nNot affected:       < 5.2.0\nFixed Versions:     7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1\n\n## Impact\n\nCSP headers were only sent along with responses that Rails considered as\n\"HTML\" responses.  This left API requests without CSP headers, which could\npossibly expose users to XSS attacks.\n\n## Releases\n\nThe FIXED releases are available at the normal locations.\n\n## Workarounds\n\nSet a CSP for your API responses manually.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de tipo XSS en Action Pack versiones posteriores a 5.2.0 incluyéndola y versiones anteriores a 5.2.0, que podría permitir a un atacante omitir el CSP para conseguir respuestas que no sean HTML","source":"nvd"}],"published":"2022-04-27T22:28:59.000Z","modified":"2026-06-17T04:28:37.450Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1","status":"affected"}],"product":"https://github.com/rails/rails","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.2.0","status":"affected","fixed":"5.2.7.1"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.4.8"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.1.0","status":"affected","fixed":"6.1.5.1"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.2.4"}],"ecosystem":"RubyGems","package":"actionpack","purl":"pkg:gem/actionpack","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.2.0","fixed":"5.2.7.1"},{"status":"affected","introduced":"6.0.0","fixed":"6.0.4.8"},{"status":"affected","introduced":"6.1.0","fixed":"6.1.5.1"},{"status":"affected","introduced":"7.0.0","fixed":"7.0.2.4"}],"vendor":"rubyonrails","product":"actionpack","cpe":"cpe:2.3:a:rubyonrails:actionpack:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2022-22577-possible-xss-vulnerability-in-action-pack/80533","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00002.html","tags":["mailing-list","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20221118-0002/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2023/dsa-5372","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22577","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/pull/44635","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/2b820a2a69fa50cffa74b4aedc57bf92ed6910ec","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/5299b57d596ea274f77f5ffee2b79c6ee0255508","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/8198d7c4accad0b6ba956b9d59528534a289866b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/d2253115ac2b30f5f7210670af906cebf79cf809","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2022-22577.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/g/ruby-security-ann/c/NuFRKaN5swI","tags":["web"],"sources":["ghsa"]},{"url":"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","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20221118-0002","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-22577","url":"https://www.cve.org/CVERecord?id=CVE-2022-22577","licence":"CVE Terms of Use","modified":"2024-08-03T03:14:55.738Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mm33-5vfq-3mm3","url":"https://github.com/advisories/GHSA-mm33-5vfq-3mm3","licence":"CC-BY-4.0","modified":"2024-02-18T05:32:29.337Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-22577","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22577","licence":"Public domain","modified":"2026-06-17T04:28:37.450Z"}],"updatedAt":"2026-11-25T22:58:11.960Z","epss":{"score":0.01826,"percentile":0.79439,"date":"2026-12-01T12:00:22.000Z"}}