# CVE-2021-41274: Authentication Bypass by CSRF Weakness

- Severity: Critical 9.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-11-17T19:55:11.000Z
- Modified: 2026-07-08T06:29:18.249Z
- Also known as: GHSA-xm34-v85h-9pg2
- Weaknesses: CWE-352
- Assigned by: GitHub_M

## Description

solidus_auth_devise provides authentication services for the Solidus webstore framework, using the Devise gem. In affected versions solidus_auth_devise is subject to a CSRF vulnerability that allows user account takeover. All applications using any version of the frontend component of `solidus_auth_devise` are affected if `protect_from_forgery` method is both: Executed whether as: A `before_action` callback (the default) or A `prepend_before_action` (option `prepend: true` given) before the `:load_object` hook in `Spree::UserController` (most likely order to find). Configured to use `:null_session` or `:reset_session` strategies (`:null_session` is the default in case the no strategy is given, but `rails --new` generated skeleton use `:exception`). Users should promptly update to `solidus_auth_devise` version `2.5.4`. Users unable to update should if possible, change their strategy to `:exception`. Please see the linked GHSA for more workaround details.

(As written by CVE List.)

## Affected

- solidusio solidus_auth_devise: >= 1.0.0, < 2.5.4
- solidus_auth_devise (RubyGems): from 1.0.0 before 2.5.4
- nebulab solidus_auth_devise: from 1.0.0 before 2.5.4

## Every score

- GitHub_M: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.3 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/solidusio/solidus_auth_devise/security/advisories/GHSA-xm34-v85h-9pg2> (exploit, third-party-advisory, web)
- <https://github.com/solidusio/solidus_auth_devise/commit/731a6645e90ea9fd228f78ec53c6976c048a0555> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41274> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/solidus_auth_devise/CVE-2021-41274.yml> (web)
- <https://github.com/solidusio/solidus_auth_devise> (package)
- <https://github.com/solidusio/solidus_auth_devise/releases/tag/v2.5.4> (web)

## Sources

- CVE List: [CVE-2021-41274](https://www.cve.org/CVERecord?id=CVE-2021-41274), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-xm34-v85h-9pg2](https://github.com/advisories/GHSA-xm34-v85h-9pg2), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41274](https://nvd.nist.gov/vuln/detail/CVE-2021-41274), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41274 · Whole record: https://cve.day/CVE-2021-41274.json · Rebuilt by cve.day 2026-11-25T22:58:05.642Z
