What’s Vulnerable › Vulnerabilities

CVE-2020-8166: Ability to forge per-form CSRF tokens in Rails

Description

A CSRF forgery vulnerability exists in rails < 5.2.5, rails < 6.0.4 that makes it possible for an attacker to, given a global CSRF token such as the one present in the authenticity_token meta tag, forge a per-form CSRF token.

Affected products

How to fix

Upgrade to a fixed version: Ruby on Rails 5.2.4.3, 6.0.3.1; Rubygems Actionpack 5.2.4.3, 6.0.3.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2020-8166 or the next vulnerability affects your stack