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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-20T21:30:11.000Z
- Modified: 2026-07-08T06:30:02.204Z
- Also known as: GHSA-h3fg-h5v3-vf8m
- Weaknesses: CWE-352
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- solidusio solidus: >= 3.1.0, < 3.1.5; >= 3.0.0, < 3.0.5; < 2.11.14
- solidus_frontend (RubyGems): before 2.11.14; from 3.0.0 before 3.0.5; from 3.1.0 before 3.1.5
- nebulab solidus: before 2.11.14; from 3.0.0 before 3.0.5; from 3.1.0 before 3.1.5

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/solidusio/solidus/security/advisories/GHSA-h3fg-h5v3-vf8m> (exploit, mitigation, third-party-advisory, web)
- <https://github.com/solidusio/solidus/commit/4d17cacf066d9492fc04eb3a0b16084b47376d81> (patch, third-party-advisory, web)
- <https://github.com/solidusio/solidus/commit/a1b9bf7f24f9b8684fc4d943eacb02b1926c77c6> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-43846> (advisory)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/solidus_frontend/CVE-2021-43846.yml> (web)
- <https://github.com/solidusio/solidus> (package)

## Sources

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

---

Page: https://cve.day/CVE-2021-43846 · Whole record: https://cve.day/CVE-2021-43846.json · Rebuilt by cve.day 2026-11-25T22:24:36.338Z
