Vulnerability · Published May 26, 2022 · Assigned by hackerone

CVE-2022-27777

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.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)1.7%top 23.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A XSS Vulnerability in Action View tag helpers >= 5.2.0 and < 5.2.0 which would allow an attacker to inject content if able to control input into specific attributes.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-27777
Debian:13rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-27777
Debian:14rails2:6.1.6.1+dfsg-1DEBIAN-CVE-2022-27777
RubyGemsactionview7.0.2.4GHSA-ch3h-j2vf-95pv
RubyGemsactionview5.2.7.1GHSA-ch3h-j2vf-95pv
RubyGemsactionview6.0.4.8GHSA-ch3h-j2vf-95pv
RubyGemsactionview6.1.5.1GHSA-ch3h-j2vf-95pv
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2022-27777
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2022-27777
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2022-27777
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2022-27777

Affected products (as reported)

VendorProductVersions
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

References