Advisory

GHSA-jp5v-5gx4-jmj9

Also known as: CVE-2020-8166

Summary

Ability to forge per-form CSRF tokens in Rails

Details

It is possible to, given a global CSRF token such as the one present in the authenticity_token meta tag, forge a per-form CSRF token for any action for that session.

Impact
------

Given the ability to extract the global CSRF token, an attacker would be able to construct a per-form CSRF token for that session.

Workarounds
-----------

This is a low-severity security issue. As such, no workaround is necessarily until such time as the application can be upgraded.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-05-26 15:11 UTC
Modified
2026-05-05 22:34 UTC

Affected packages and fixes

actionpack

RubyGems · All systems

Affected

  • introduced 5.0.0, fixed 5.2.4.3 (ecosystem)

Fixed versions

5.2.4.3

Fix

The export has no generic command for this ecosystem.

actionpack

RubyGems · All systems

Affected

  • introduced 6.0.0, fixed 6.0.3.1 (ecosystem)

Fixed versions

6.0.3.1

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences