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.
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.015, 75.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rails Actionview — versions < 5.2.4.2, >= 6.0.0, < 6.0.2.2
- Rubyonrails Actionview
- Debian Linux — versions 8.0
- Fedoraproject Fedora — versions 33
- openSUSE Leap — versions 15.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- GUI/legacy-rails-CVE-2020-5267-patch (1 star, last pushed 2022-12-14): Patch CVE-2020-5267 for Rails 4 and Rails 3
Also mentioned in 7 other repositories (0xT11/CVE-POC, ARPSyndicate/cvemon, developer3000S/PoC-in-GitHub, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/rails/rails/security/advisories/GHSA-65cv-r6x7-79hv (Exploit, Patch, Third Party Advisory)
- github.com/rails/rails/commit/033a738817abd6e446e1b320cb7d1a5c15224e9a (Patch, Third Party Advisory)
- [oss-security] 20200319 [CVE-2020-5267] Possible XSS vulnerability in ActionView (mailing-list, Exploit, Patch, Mailing List, Third Party Advisory)
- [debian-lts-announce] 20200320 [SECURITY] [DLA 2149-1] rails security update (mailing-list, Mailing List, Third Party Advisory)
- openSUSE-SU-2020:0627 (vendor-advisory, Mailing List, Third Party Advisory)
- FEDORA-2020-4dd34860a3 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.