Skip to main content

CVE-2020-15269 — Vulnerability in spree — CVE Details

HIGH

Ensure that doorkeeper_token is valid when authenticating requests in API v2 calls

Published October 20, 2020Updated July 8, 2026Source: OSV

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.

Check my Gemfile.lock

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:

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.

Bundler
Update spree to 3.7.11 or later
gem install spree -v 3.7.11
Bundler
Update spree to 4.1.11 or later
gem install spree -v 4.1.11
Bundler
Update spree to 4.0.4 or later
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).

PackageFixed In
spree RubyGems · Affected: 0.0.5, 0.0.6, 0.0.7, 0.0.8 (+259 more)3.7.11
spree RubyGems · Affected: 4.1.0, 4.1.1, 4.1.10, 4.1.2 (+7 more)4.1.11
spree RubyGems · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.34.0.4

Vulnerability Classification

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

CVSS Score Breakdown

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

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

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

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

CVSS Score
7.4

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.06%
EPSS percentile: 64.1

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

GHSA-f8cm-364f-q9qh

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock