Loading...
Skip to main content

CVE-2022-22577

MEDIUM

Cross-site Scripting Vulnerability in Action Pack

Published April 27, 2022Updated February 18, 2024Source: osv

Summary

There is a possible XSS vulnerability in Rails / Action Pack. This vulnerability has been assigned the CVE identifier CVE-2022-22577. Versions Affected: >= 5.2.0 Not affected: < 5.2.0 Fixed Versions: 7.0.2.4, 6.1.5.1, 6.0.4.8, 5.2.7.1 ## Impact CSP headers were only sent along with responses that Rails considered as "HTML" responses. This left API requests without CSP headers, which could possibly expose users to XSS attacks. ## Releases The FIXED releases are available at the normal locations. ## Workarounds Set a CSP for your API responses manually.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update actionpack to 5.2.7.1 or later
gem install actionpack -v 5.2.7.1
Bundler
Update actionpack to 6.0.4.8 or later
gem install actionpack -v 6.0.4.8
Bundler
Update actionpack to 7.0.2.4 or later
gem install actionpack -v 7.0.2.4
Bundler
Update actionpack to 6.1.5.1 or later
gem install actionpack -v 6.1.5.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

PackageEcosystemAffectedFixed In
actionpack
rubygems
5.2.0, 5.2.1, 5.2.1.1, 5.2.1.rc1 (+19 more)5.2.7.1
actionpack
rubygems
6.0.0, 6.0.1, 6.0.1.rc1, 6.0.2 (+21 more)6.0.4.8
actionpack
rubygems
7.0.0, 7.0.1, 7.0.2, 7.0.2.1 (+2 more)7.0.2.4
actionpack
rubygems
6.1.0, 6.1.1, 6.1.2, 6.1.2.1 (+12 more)6.1.5.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Frequently Asked Questions

What is CVE-2022-22577?
Cross-site Scripting Vulnerability in Action Pack This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.1/10).
How do I check if my project is affected by CVE-2022-22577?
CVE-2022-22577 affects actionpack. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-22577 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.1

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-mm33-5vfq-3mm3

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies