CVE-2020-15269 — Vulnerability in spree — CVE Details
Ensure that doorkeeper_token is valid when authenticating requests in API v2 calls
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.06%). Schedule for your next planned update.
Does your project use an affected spree version?
Paste your Gemfile.lock to check it for CVE-2020-15269 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 who previously obtained an old expired user token could use it to access Storefront API v2 endpoints.
Patches
Please upgrade to 3.7.11, 4.0.4, or 4.1.11 depending on your used Spree version.
Workarounds
In your project directory create a decorator file app/controllers/spree/api/v2/base_controller_decotatror.rb with contents:
module Spree
module Api
module V2
module BaseControllerDecorator
private
def spree_current_user
return nil unless doorkeeper_token
return @spree_current_user if @spree_current_user
doorkeeper_authorize!
@spree_current_user ||= ::Spree.user_class.find_by(id: doorkeeper_token.resource_owner_id)
end
end
end
end
Spree::Api::V2::BaseController.prepend(Spree::Api::V2::BaseControllerDecorator)
For more information
If you have any questions or comments about this advisory:
- Email us at security@spreecommerce.org
Advisory Timeline
- First published October 20, 2020 (2228 days ago).
- Last revised July 8, 2026 — 2086 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install spree -v 3.7.11
gem install spree -v 4.1.11
gem install spree -v 4.0.4
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-287Improper AuthenticationMITRE
- CWE-613
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/spree/spree/security/advisories/GHSA-f8cm-364f-q9qhWEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-15269ADVISORY
- https://github.com/spree/spree/commit/e43643abfe51f54bd9208dd02298b366e9b9a847WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/spree/CVE-2020-15269.ymlWEB
- https://github.com/spree/spreePACKAGE
Frequently Asked Questions
- What is CVE-2020-15269?
- Ensure that doorkeeper_token is valid when authenticating requests in API v2 calls. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.4/10).
- How do I check if my project is affected by CVE-2020-15269?
- CVE-2020-15269 affects spree. 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-15269 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 64.1% 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-2011-10019CRITICAL
Spree has Remote Command Execution vulnerability in search functionality
- CVE-2011-10026CRITICAL
Spree Commerce is vulnerable to RCE through Search API
- CVE-2026-126366HIGH
msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key
- GHSA-xf4v-w5x5-pv79MEDIUM
Spree: CSV Formula Injection in Customer Export