Skip to main content

CVE-2020-26223 — Authorization bypass in spree_api — CVE Details

HIGH

Authorization bypass in Spree

Published November 13, 2020Updated September 10, 2026Source: OSV

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.

Check my Gemfile.lock

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:

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.

Bundler
Update spree_api to 4.0.5 or later
gem install spree_api -v 4.0.5
Bundler
Update spree_api to 4.1.12 or later
gem install spree_api -v 4.1.12
Bundler
Update spree_api to 3.7.13 or later
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).

PackageFixed In
spree_api RubyGems · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+1 more)4.0.5
spree_api RubyGems · Affected: 4.1.0, 4.1.1, 4.1.10, 4.1.11 (+8 more)4.1.12
spree_api RubyGems · Affected: 3.7.0, 3.7.1, 3.7.10, 3.7.11 (+9 more)3.7.13

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-863
    Incorrect AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

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

CVSS Score
7.7

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.12%
EPSS percentile: 65.9

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

GHSA-m2jr-hmc3-qmpr

Related CVEs

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-126366
    HIGH

    msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM

  • CVE-2026-25758
    HIGH

    Unauthenticated Spree Commerce users can access all guest addresses

  • CVE-2026-126081
    HIGH

    Action Pack: Possible Strong Parameters Bypass in Parameters#each_key

  • CVE-2026-22588
    MEDIUM

    Spree API has Authenticated Insecure Direct Object Reference (IDOR) via Order Modification

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock