cve.bz

CVE-2022-22577 Cross-site Scripting

6.1 mediumEPSS 1.8%Fix available

Medium (6.1). EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in actionpack 5.2.7.1, 6.0.4.8, 6.1.5.1.

On this page
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.

Severity

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
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-22577 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-22577?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-22577?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-22577 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rubyonrails:actionpackfrom 5.2.0 before 5.2.7.1
rubyonrails:actionpackfrom 6.0.0 before 6.0.4.8
rubyonrails:actionpackfrom 6.1.0 before 6.1.5.1
rubyonrails:actionpackfrom 7.0.0 before 7.0.2.4
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mm33-5vfq-3mm3RubyGemsactionpack>=5.2.0 <5.2.7.15.2.7.1
GHSA-mm33-5vfq-3mm3RubyGemsactionpack>=6.0.0 <6.0.4.86.0.4.8
GHSA-mm33-5vfq-3mm3RubyGemsactionpack>=6.1.0 <6.1.5.16.1.5.1
GHSA-mm33-5vfq-3mm3RubyGemsactionpack>=7.0.0 <7.0.2.47.0.2.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10rails2:5.2.2.1+dfsg-1+deb10u4DLA-3093-1
Debian11rails2:6.0.3.7+dfsg-2+deb11u1DSA-5372-1
Debian12, 13, 14rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-22577
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 morerailsno fix listedUBUNTU-CVE-2022-22577
Red Hatsatellite:6.13::el8foreman-obsolete-packages0:1.1-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8postgresql-evr0:0.0.2-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8python-websockify, python3-websockify0:0.10.0-3.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8qpid-dispatch, qpid-dispatch-tools, qpid-dispatch-router and 2 more0:1.14.0-6.el8RHSA-2023:2097
Red Hatsatellite:6.13::el8qpid-proton, qpid-proton-c, python3-qpid-proton and 5 more0:0.33.0-4.el8RHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-acts_as_list0:1.0.3-2.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-algebrick, rubygem-websocket-driver, rubygem-websocket-driver-debuginfo and 1 more0:0.7.5-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-anemone0:0.7.2-23.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-apipie-rails0:0.8.2-1.1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-azure_mgmt_compute0:0.22.0-1.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-azure_mgmt_network0:0.26.1-2.el8satRHSA-2023:2097
Red Hatsatellite:6.13::el8rubygem-azure_mgmt_resources0:0.18.2-1.el8satRHSA-2023:2097
188 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Satellite 6.13 for RHEL 8tfm-rubygem-actionpack-0:6.1.7-1.el8satFixed 2023-05-03RHSA-2023:2097
CloudForms Management Engine 5actionpackOut of support scope
Red Hat 3scale API Management Platform 2actionpackWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-22577.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON