CVE-2020-8167:
CSRF Vulnerability in rails-ujs
6.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68287%
CWE
Published
7/7/2020
Updated
8/17/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
actionview | rubygems | >= 5.0.0, <= 5.2.4.2 | 5.2.4.3 |
actionview | rubygems | >= 6.0.0, <= 6.0.3 | 6.0.3.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability occurs when rails-ujs adds CSRF tokens to cross-origin requests. The handleMethod
function in method.coffee
is responsible for processing AJAX requests from links/forms. Pre-patch versions lacked cross-origin validation before token inclusion. Runtime detection would show this function
in call stacks when malicious links/forms trigger unauthorized token transmission.