XSS in Rails Actionview
CVE-2020-5267
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.
EPSS: 0.015 (72.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 4.0 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N.
Affected products
- Rails Actionview — versions < 5.2.4.2, >= 6.0.0, < 6.0.2.2
- Rubyonrails Actionview
- Debian Debian_linux — versions 8.0
- Fedoraproject Fedora — versions 33
- Opensuse Leap — versions 15.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Patch, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (mailing-list, x_refsource_MLIST, Exploit, Patch, Mailing List, Third Party Advisory)
- security-advisories@github.com (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory)
- security-advisories@github.com (vendor-advisory, Mailing List, Third Party Advisory, x_refsource_SUSE)
- security-advisories@github.com (x_refsource_FEDORA, vendor-advisory)
Frequently asked questions
- What is CVE-2020-5267?
- CVE-2020-5267 is a medium-severity vulnerability in Rails Actionview, classified under Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS). CVSS score: 4.0/10. Published 2020-03-19.
- How severe is CVE-2020-5267?
- Medium severity. CVSS v3 base score is 4.0 out of 10.
- Is CVE-2020-5267 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.