Vulnerability · Published Mar 19, 2020 · Assigned by GitHub_M

CVE-2020-5267Possible XSS vulnerability in ActionView

Medium 4.0

In plain English

A medium-severity security flaw in actionview from rails. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)1.5%top 25.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

In ActionView before versions 6.0.2.2 and 5.2.4.2, there is a possible XSS vulnerability in ActionView's JavaScript literal escape helpers. Views that use the `j` or `escape_javascript` methods may be susceptible to XSS attacks. The issue is fixed in versions 6.0.2.2 and 5.2.4.2.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rails2:5.2.4.1+dfsg-2DEBIAN-CVE-2020-5267
Debian:13rails2:5.2.4.1+dfsg-2DEBIAN-CVE-2020-5267
Debian:14rails2:5.2.4.1+dfsg-2DEBIAN-CVE-2020-5267
RubyGemsactionview5.2.4.2GHSA-65cv-r6x7-79hv
RubyGemsactionview6.0.2.2GHSA-65cv-r6x7-79hv

Affected products (as reported)

VendorProductVersions
rails actionview < 5.2.4.2>= 6.0.0, < 6.0.2.2

Weakness: CWE-80 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N

References