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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.59% (percentile 42, 2026-11-26)
- **CWE:** CWE-352
- **Aliases:** GHSA-h3fg-h5v3-vf8m
- **Published:** 2021-12-20T21:30:11.000Z
- **Modified:** 2026-07-08T06:30:02.204Z

## Who should check

- Projects that depend on RubyGems package solidus\_frontend (\< 2.11.14)
- Anyone running solidusio solidus \>= 3.1.0, \< 3.1.5; \>= 3.0.0, \< 3.0.5; \< 2.11.14

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

## Affected and fixed versions

- RubyGems `solidus_frontend`: affected \< 2.11.14; fixed 2.11.14, 3.0.5, 3.1.5 (osv)
- solidusio solidus: \>= 3.1.0, \< 3.1.5; \>= 3.0.0, \< 3.0.5; \< 2.11.14 (cvelist)

## Mitigation

- Upgrade solidus\_frontend to one of 2.11.14, 3.0.5, 3.1.5 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-43846. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-43846.md
Affected: solidus_frontend < 2.11.14
Fixed in: 2.11.14, 3.0.5, 3.1.5

Steps:
1. Search this machine and project for solidus_frontend (RubyGems), solidusio solidus: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-43846 being exploited?

There is no confirmed exploitation: CVE-2021-43846 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.59% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-43846?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2021-43846?

solidus\_frontend \< 2.11.14.

### Is there a fix for CVE-2021-43846?

Yes. Fixed in 2.11.14, 3.0.5, 3.1.5. Upgrade solidus\_frontend to one of 2.11.14, 3.0.5, 3.1.5 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-43846?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/solidusio/solidus/security/advisories/GHSA-h3fg-h5v3-vf8m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-43846>
- patch: <https://github.com/solidusio/solidus/commit/4d17cacf066d9492fc04eb3a0b16084b47376d81>
- patch: <https://github.com/solidusio/solidus/commit/a1b9bf7f24f9b8684fc4d943eacb02b1926c77c6>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/solidus_frontend/CVE-2021-43846.yml>
- other: <https://github.com/solidusio/solidus>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43846>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-h3fg-h5v3-vf8m> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-43846> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43846>
