CVE-2020-26223 — Authorization bypass in spree_api — CVE Details
Authorization bypass in Spree
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.12%). Schedule for your next planned update.
Does your project use an affected spree_api version?
Paste your Gemfile.lock to check it for CVE-2020-26223 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
The perpetrator could query the API v2 Order Status endpoint with an empty string passed as an Order token
Patches
Please upgrade to 3.7.11, 4.0.4, or 4.1.11 depending on your used Spree version. Users of Spree < 3.7 are not affected.
References
Pull request with a fix and in-depth explanation - https://github.com/spree/spree/pull/10573
For more information
If you have any questions or comments about this advisory:
- Email us at security@spreecommerce.org
Advisory Timeline
- First published November 13, 2020 (2204 days ago).
- Last revised September 10, 2026 — 2126 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install spree_api -v 4.0.5
gem install spree_api -v 4.1.12
gem install spree_api -v 3.7.13
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: RubyGems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-863Incorrect AuthorizationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.7 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/spree/spree/security/advisories/GHSA-m2jr-hmc3-qmprWEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-26223ADVISORY
- https://github.com/spree/spree/pull/10573WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree_api/CVE-2020-26223.ymlWEB
- https://github.com/spree/spreePACKAGE
- https://guides.spreecommerce.org/api/v2/storefront#tag/Order-StatusWEB
- https://rubygems.org/gems/spree_api/versionsWEB
Frequently Asked Questions
- What is CVE-2020-26223?
- Authorization bypass in Spree. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.7/10).
- How do I check if my project is affected by CVE-2020-26223?
- CVE-2020-26223 affects spree_api. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-26223 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 65.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-94462HIGH
Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)
- CVE-2026-126366HIGH
msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM
- CVE-2026-25758HIGH
Unauthenticated Spree Commerce users can access all guest addresses
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
- CVE-2026-22588MEDIUM
Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification